opaleye-0.5.0.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell98

Opaleye.Internal.QueryArr

Synopsis

Documentation

newtype QueryArr a b Source

QueryArr a b is analogous to a Haskell function a -> [b].

Constructors

QueryArr ((a, PrimQuery, Tag) -> (b, PrimQuery, Tag)) 

type Query = QueryArr () Source

Query a is analogous to a Haskell value [a].

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

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