opaleye-0.5.1.1: 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

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

ProductProfunctor Binaryspec Source # 

Methods

empty :: Binaryspec () ()

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

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 #