Hoogle Search

Within LTS Haskell 24.46 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. binaryspecMaybeFields :: WithNulls Binaryspec a b -> Binaryspec (MaybeFields a) (MaybeFields b)

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

  2. catMaybeFields :: SelectArr i (MaybeFields a) -> SelectArr i a

    opaleye Opaleye.Internal.MaybeFields

    The Opaleye analogue of catMaybes. Most commonly you will want to use this at type

    catMaybeFields :: Select (MaybeFields a) -> Select a
    

  3. eqPPMaybeFields :: EqPP a b -> EqPP (MaybeFields a) (MaybeFields b)

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

  4. fromFieldsMaybeFields :: FromFields fields haskells -> FromFields (MaybeFields fields) (Maybe haskells)

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

  5. fromMaybeFields :: Default IfPP b b => b -> MaybeFields b -> b

    opaleye Opaleye.Internal.MaybeFields

    The Opaleye analogue of fromMaybe

  6. fromMaybeFieldsExplicit :: IfPP b b -> b -> MaybeFields b -> b

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

  7. ifPPMaybeFields :: IfPP a b -> IfPP (MaybeFields a) (MaybeFields b)

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

  8. mapMaybeFieldsWithNulls :: ProductProfunctor p => p (Field SqlBool) (Field SqlBool) -> WithNulls p a b -> WithNulls p (MaybeFields a) (MaybeFields b)

    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.

  9. matchMaybe :: Default IfPP b b => MaybeFields a -> (Maybe a -> b) -> b

    opaleye 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
    

  10. nullableToMaybeFields :: FieldNullable a -> MaybeFields (Field a)

    opaleye Opaleye.Internal.MaybeFields

    Convert NULL to nothingFields and non-NULL to a justFields

Page 282 of many | Previous | Next