opaleye-0.6.7004.1: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Internal.QueryArr

Documentation

newtype QueryArr a b Source #

Constructors

QueryArr ((a, PrimQuery, Tag) -> (b, PrimQuery, Tag)) 
Instances
Arrow QueryArr Source # 
Instance details

Defined in Opaleye.Internal.QueryArr

Methods

arr :: (b -> c) -> QueryArr b c #

first :: QueryArr b c -> QueryArr (b, d) (c, d) #

second :: QueryArr b c -> QueryArr (d, b) (d, c) #

(***) :: QueryArr b c -> QueryArr b' c' -> QueryArr (b, b') (c, c') #

(&&&) :: QueryArr b c -> QueryArr b c' -> QueryArr b (c, c') #

ArrowChoice QueryArr Source # 
Instance details

Defined in Opaleye.Internal.QueryArr

Methods

left :: QueryArr b c -> QueryArr (Either b d) (Either c d) #

right :: QueryArr b c -> QueryArr (Either d b) (Either d c) #

(+++) :: QueryArr b c -> QueryArr b' c' -> QueryArr (Either b b') (Either c c') #

(|||) :: QueryArr b d -> QueryArr c d -> QueryArr (Either b c) d #

Profunctor QueryArr Source # 
Instance details

Defined in Opaleye.Internal.QueryArr

Methods

dimap :: (a -> b) -> (c -> d) -> QueryArr b c -> QueryArr a d #

lmap :: (a -> b) -> QueryArr b c -> QueryArr a c #

rmap :: (b -> c) -> QueryArr a b -> QueryArr a c #

(#.) :: Coercible c b => q b c -> QueryArr a b -> QueryArr a c #

(.#) :: Coercible b a => QueryArr b c -> q a b -> QueryArr a c #

ProductProfunctor QueryArr Source # 
Instance details

Defined in Opaleye.Internal.QueryArr

Methods

purePP :: b -> QueryArr a b #

(****) :: QueryArr a (b -> c) -> QueryArr a b -> QueryArr a c #

empty :: QueryArr () () #

(***!) :: QueryArr a b -> QueryArr a' b' -> QueryArr (a, a') (b, b') #

Functor (QueryArr a) Source # 
Instance details

Defined in Opaleye.Internal.QueryArr

Methods

fmap :: (a0 -> b) -> QueryArr a a0 -> QueryArr a b #

(<$) :: a0 -> QueryArr a b -> QueryArr a a0 #

Applicative (QueryArr a) Source # 
Instance details

Defined in Opaleye.Internal.QueryArr

Methods

pure :: a0 -> QueryArr a a0 #

(<*>) :: QueryArr a (a0 -> b) -> QueryArr a a0 -> QueryArr a b #

liftA2 :: (a0 -> b -> c) -> QueryArr a a0 -> QueryArr a b -> QueryArr a c #

(*>) :: QueryArr a a0 -> QueryArr a b -> QueryArr a b #

(<*) :: QueryArr a a0 -> QueryArr a b -> QueryArr a a0 #

Category QueryArr Source # 
Instance details

Defined in Opaleye.Internal.QueryArr

Methods

id :: QueryArr a a #

(.) :: QueryArr b c -> QueryArr a b -> QueryArr a c #

simpleQueryArr :: ((a, Tag) -> (b, PrimQuery, Tag)) -> QueryArr a b Source #

first3 :: (a1 -> b) -> (a1, a2, a3) -> (b, a2, a3) Source #