Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Binaryspec columns columns'
- binaryspecField :: Binaryspec (Column a) (Column a)
- binaryspecMaybeFields :: WithNulls Binaryspec a b -> Binaryspec (MaybeFields a) (MaybeFields b)
- data Distinctspec a b
- distinctspecField :: Distinctspec (Column a) (Column a)
- distinctspecMaybeFields :: WithNulls Distinctspec a b -> Distinctspec (MaybeFields a) (MaybeFields b)
- data EqPP a b
- eqPPField :: EqPP (Column a) ignored
- eqPPMaybeFields :: EqPP a b -> EqPP (MaybeFields a) (MaybeFields b)
- data IfPP a b
- ifPPField :: IfPP (Column a) (Column a)
- ifPPMaybeFields :: IfPP a b -> IfPP (MaybeFields a) (MaybeFields b)
- data FromFields columns haskells
- fromFieldsMaybeFields :: FromFields fields haskells -> FromFields (MaybeFields fields) (Maybe haskells)
- data Nullspec fields fields'
- nullspecField :: IsSqlType b => Nullspec a (Column b)
- nullspecMaybeFields :: Nullspec a b -> Nullspec (MaybeFields a) (MaybeFields b)
- nullspecList :: Nullspec a [b]
- nullspecEitherLeft :: Nullspec a b -> Nullspec a (Either b b')
- nullspecEitherRight :: Nullspec a b' -> Nullspec a (Either b b')
- data ToFields haskells fields
- toFieldsMaybeFields :: Nullspec a b -> ToFields a b -> ToFields (Maybe a) (MaybeFields b)
- data Unpackspec columns columns'
- unpackspecField :: Unpackspec (Column a) (Column a)
- unpackspecMaybeFields :: Unpackspec a b -> Unpackspec (MaybeFields a) (MaybeFields b)
- data Updater a b
- data Valuesspec columns columns'
- type ValuesspecSafe = Valuesspec
- valuesspecField :: IsSqlType a => Valuesspec (Column a) (Column a)
- valuesspecMaybeFields :: Valuesspec a b -> Valuesspec (MaybeFields a) (MaybeFields b)
- data WithNulls p a b
Binaryspec
data Binaryspec columns columns' Source #
Instances
binaryspecField :: Binaryspec (Column a) (Column a) Source #
binaryspecMaybeFields :: WithNulls Binaryspec a b -> Binaryspec (MaybeFields a) (MaybeFields b) Source #
Distinctspec
data Distinctspec a b Source #
Instances
distinctspecField :: Distinctspec (Column a) (Column a) Source #
distinctspecMaybeFields :: WithNulls Distinctspec a b -> Distinctspec (MaybeFields a) (MaybeFields b) Source #
EqPP
Instances
Profunctor EqPP Source # | |
Defined in Opaleye.Internal.Operators | |
ProductProfunctor EqPP Source # | |
Default EqPP (Column a) (Column a) Source # | |
Default EqPP a b => Default EqPP (MaybeFields a) (MaybeFields b) Source # | |
Defined in Opaleye.Internal.MaybeFields def :: EqPP (MaybeFields a) (MaybeFields b) # |
eqPPMaybeFields :: EqPP a b -> EqPP (MaybeFields a) (MaybeFields b) Source #
IfPP
Instances
Profunctor IfPP Source # | |
Defined in Opaleye.Internal.Operators | |
ProductProfunctor IfPP Source # | |
Default IfPP (Column a) (Column a) Source # | |
Default IfPP a b => Default IfPP (MaybeFields a) (MaybeFields b) Source # | |
Defined in Opaleye.Internal.MaybeFields def :: IfPP (MaybeFields a) (MaybeFields b) # |
ifPPMaybeFields :: IfPP a b -> IfPP (MaybeFields a) (MaybeFields b) Source #
FromFields
data FromFields columns haskells Source #
A FromFields
specifies how to convert Postgres values (fields
)
into Haskell values (haskells
). Most likely you will never need
to create on of these or handle one directly. It will be provided
for you by the Default
FromFields
instance.
"FromFields
fields
haskells
" corresponds to
postgresql-simple's "RowParser
haskells
". "Default
FromFields
columns
haskells
" corresponds to
postgresql-simple's "FromRow
haskells
".
Instances
fromFieldsMaybeFields :: FromFields fields haskells -> FromFields (MaybeFields fields) (Maybe haskells) Source #
Nullspec
data Nullspec fields fields' Source #
Instances
Profunctor Nullspec Source # | |
Defined in Opaleye.Internal.Values dimap :: (a -> b) -> (c -> d) -> Nullspec b c -> Nullspec a d # lmap :: (a -> b) -> Nullspec b c -> Nullspec a c # rmap :: (b -> c) -> Nullspec a b -> Nullspec a c # (#.) :: forall a b c q. Coercible c b => q b c -> Nullspec a b -> Nullspec a c # (.#) :: forall a b c q. Coercible b a => Nullspec b c -> q a b -> Nullspec a c # | |
ProductProfunctor Nullspec Source # | |
IsSqlType b => Default Nullspec a (Column b) Source # | |
Defined in Opaleye.Internal.Values | |
Functor (Nullspec a) Source # | |
Applicative (Nullspec a) Source # | |
Defined in Opaleye.Internal.Values |
nullspecMaybeFields :: Nullspec a b -> Nullspec (MaybeFields a) (MaybeFields b) Source #
nullspecList :: Nullspec a [b] Source #
ToFields
data ToFields haskells fields Source #
Instances
toFieldsMaybeFields :: Nullspec a b -> ToFields a b -> ToFields (Maybe a) (MaybeFields b) Source #
Unpackspec
data Unpackspec columns columns' Source #
Instances
unpackspecField :: Unpackspec (Column a) (Column a) Source #
unpackspecMaybeFields :: Unpackspec a b -> Unpackspec (MaybeFields a) (MaybeFields b) Source #
Updater
Instances
Profunctor Updater Source # | |
Defined in Opaleye.Internal.Manipulation dimap :: (a -> b) -> (c -> d) -> Updater b c -> Updater a d # lmap :: (a -> b) -> Updater b c -> Updater a c # rmap :: (b -> c) -> Updater a b -> Updater a c # (#.) :: forall a b c q. Coercible c b => q b c -> Updater a b -> Updater a c # (.#) :: forall a b c q. Coercible b a => Updater b c -> q a b -> Updater a c # | |
ProductProfunctor Updater Source # | |
Default Updater (Column a) (Maybe (Column a)) Source # | |
Default Updater (Column a) (Column a) Source # | |
Functor (Updater a) Source # | |
Applicative (Updater a) Source # | |
Defined in Opaleye.Internal.Manipulation |
Valuesspec
data Valuesspec columns columns' Source #
Instances
type ValuesspecSafe = Valuesspec Source #
valuesspecField :: IsSqlType a => Valuesspec (Column a) (Column a) Source #
valuesspecMaybeFields :: Valuesspec a b -> Valuesspec (MaybeFields a) (MaybeFields b) Source #