Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Combinators that can be used for aggregating independent queries. See my article about aggregating mget queries for more information.
- newtype T x y a b = T (Traversal a b x y)
- type (⟿) a b = T ByteString (Maybe ByteString) a b
- type (~~>) a b = T ByteString (Maybe ByteString) a b
- type Query a b = a ⟿ b
- aggregatePair :: T x y a b -> T x y c d -> T x y (a, c) (b, d)
- remember :: T x y a b -> T x y a (a, b)
- runT :: Functor f => ([x] -> f [y]) -> T x y a b -> a -> f b
Documentation
Abstract representation for aggregation.
type (⟿) a b = T ByteString (Maybe ByteString) a b Source #
A query using input of type a
and yielding an output of type b
type (~~>) a b = T ByteString (Maybe ByteString) a b Source #
An ASCII version of ⟿