opaleye-0.5.1.1: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.Internal.TableMaker

Documentation

newtype ViewColumnMaker strings columns Source #

Constructors

ViewColumnMaker (PackMap () () strings columns) 

Instances

Profunctor ViewColumnMaker Source # 

Methods

dimap :: (a -> b) -> (c -> d) -> ViewColumnMaker b c -> ViewColumnMaker a d

lmap :: (a -> b) -> ViewColumnMaker b c -> ViewColumnMaker a c

rmap :: (b -> c) -> ViewColumnMaker a b -> ViewColumnMaker a c

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

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

ProductProfunctor ViewColumnMaker Source # 

Methods

empty :: ViewColumnMaker () ()

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

Default ViewColumnMaker String (Column a) Source # 
Functor (ViewColumnMaker a) Source # 

Methods

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

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

Applicative (ViewColumnMaker a) Source # 

newtype ColumnMaker columns columns' Source #

Constructors

ColumnMaker (PackMap PrimExpr PrimExpr columns columns') 

Instances

Profunctor ColumnMaker Source # 

Methods

dimap :: (a -> b) -> (c -> d) -> ColumnMaker b c -> ColumnMaker a d

lmap :: (a -> b) -> ColumnMaker b c -> ColumnMaker a c

rmap :: (b -> c) -> ColumnMaker a b -> ColumnMaker a c

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

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

ProductProfunctor ColumnMaker Source # 

Methods

empty :: ColumnMaker () ()

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

Default ColumnMaker (Column a) (Column a) Source # 

Methods

def :: ColumnMaker (Column a) (Column a)

Functor (ColumnMaker a) Source # 

Methods

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

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

Applicative (ColumnMaker a) Source # 

Methods

pure :: a -> ColumnMaker a a #

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

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

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

runViewColumnMaker :: ViewColumnMaker strings tablecolumns -> strings -> tablecolumns Source #

runColumnMaker :: Applicative f => ColumnMaker tablecolumns columns -> (PrimExpr -> f PrimExpr) -> tablecolumns -> f columns Source #