Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromMaybeFields :: Default IfPP b b => b -> MaybeFields b -> bopaleye Opaleye.Internal.MaybeFields The Opaleye analogue of fromMaybe
fromMaybeFieldsExplicit :: IfPP b b -> b -> MaybeFields b -> bopaleye Opaleye.Internal.MaybeFields No documentation available.
ifPPMaybeFields :: IfPP a b -> IfPP (MaybeFields a) (MaybeFields b)opaleye Opaleye.Internal.MaybeFields No documentation available.
-
opaleye Opaleye.Internal.MaybeFields This is only safe if b is OK with having nulls passed through it when they claim to be non-null.
matchMaybe :: Default IfPP b b => MaybeFields a -> (Maybe a -> b) -> bopaleye Opaleye.Internal.MaybeFields Use a Haskell \case expression to pattern match on a MaybeFields.
example :: MaybeFields (Field SqlInt4) -> Field SqlInt4 example mf = matchMaybe mf $ \case Nothing -> 0 Just x -> x * 100
nullableToMaybeFields :: FieldNullable a -> MaybeFields (Field a)opaleye Opaleye.Internal.MaybeFields Convert NULL to nothingFields and non-NULL to a justFields
nullspecMaybeFields :: Nullspec a b -> Nullspec (MaybeFields a) (MaybeFields b)opaleye Opaleye.Internal.MaybeFields No documentation available.
-
opaleye Opaleye.Internal.MaybeFields This is not safe in general because it relies on p not doing anything observable with the as if mfPresent is false. In particular, it won't work for Distinctspec because it does indeed look at the mfFields to check distinctness.
toFieldsMaybeFields :: Nullspec a b -> ToFields a b -> ToFields (Maybe a) (MaybeFields b)opaleye Opaleye.Internal.MaybeFields No documentation available.
traverseMaybeFields :: SelectArr a b -> SelectArr (MaybeFields a) (MaybeFields b)opaleye Opaleye.Internal.MaybeFields No documentation available.