Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
matchMaybe :: Default IfPP b b => MaybeFields a -> (Maybe a -> b) -> bopaleye Opaleye.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.MaybeFields Convert NULL to nothingFields and non-NULL to a justFields
nullspecMaybeFields :: Nullspec a b -> Nullspec (MaybeFields a) (MaybeFields b)opaleye Opaleye.MaybeFields No documentation available.
toFieldsMaybeFields :: Nullspec a b -> ToFields a b -> ToFields (Maybe a) (MaybeFields b)opaleye Opaleye.MaybeFields No documentation available.
-
opaleye Opaleye.MaybeFields traverseMaybeFields is analogous to Haskell's traverse :: (a -> [b]) -> Maybe a -> [Maybe b]. In particular, traverse has the following definition that generalises to traverseMaybeFields:
traverse _ Nothing = pure Nothing
traverse f (Just x) = fmap Just (f x)
-
opaleye Opaleye.MaybeFields No documentation available.
unpackspecMaybeFields :: Unpackspec a b -> Unpackspec (MaybeFields a) (MaybeFields b)opaleye Opaleye.MaybeFields No documentation available.
valuesspecMaybeFields :: Valuesspec a b -> Valuesspec (MaybeFields a) (MaybeFields b)opaleye Opaleye.MaybeFields No documentation available.
checkMapMaybe :: HasCallStack => (a -> Maybe b) -> Parser a -> Parser bopt-env-conf OptEnvConf Like checkMapEither but without a helpful error message. Prefer checkMapEither.
checkMapMaybe :: HasCallStack => (a -> Maybe b) -> Parser a -> Parser bopt-env-conf OptEnvConf Like checkMapEither but without a helpful error message. Prefer checkMapEither.