opaleye-0.5.4.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Internal.Binary

Documentation

newtype Binaryspec columns columns' Source #

Constructors

Binaryspec (PackMap (PrimExpr, PrimExpr) PrimExpr (columns, columns) columns') 

Instances

ProductProfunctor Binaryspec Source # 

Methods

purePP :: b -> Binaryspec a b #

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

empty :: Binaryspec () () #

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

Profunctor Binaryspec Source # 

Methods

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

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

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

(#.) :: Coercible * c b => (b -> c) -> Binaryspec a b -> Binaryspec a c #

(.#) :: Coercible * b a => Binaryspec b c -> (a -> b) -> Binaryspec a c #

Default Binaryspec (Column a) (Column a) Source # 

Methods

def :: Binaryspec (Column a) (Column a) #

Functor (Binaryspec a) Source # 

Methods

fmap :: (a -> b) -> Binaryspec a a -> Binaryspec a b #

(<$) :: a -> Binaryspec a b -> Binaryspec a a #

Applicative (Binaryspec a) Source # 

Methods

pure :: a -> Binaryspec a a #

(<*>) :: Binaryspec a (a -> b) -> Binaryspec a a -> Binaryspec a b #

(*>) :: Binaryspec a a -> Binaryspec a b -> Binaryspec a b #

(<*) :: Binaryspec a a -> Binaryspec a b -> Binaryspec a a #

runBinaryspec :: Applicative f => Binaryspec columns columns' -> ((PrimExpr, PrimExpr) -> f PrimExpr) -> (columns, columns) -> f columns' Source #

sameTypeBinOpHelper :: BinOp -> Binaryspec columns columns' -> Query columns -> Query columns -> Query columns' Source #