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.

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

    opaleye Opaleye.Internal.MaybeFields

    The Opaleye analogue of fromMaybe

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

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

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

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

  4. 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.

  5. 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
    

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

    opaleye Opaleye.Internal.MaybeFields

    Convert NULL to nothingFields and non-NULL to a justFields

  7. nullspecMaybeFields :: Nullspec a b -> Nullspec (MaybeFields a) (MaybeFields b)

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

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

    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.

  9. toFieldsMaybeFields :: Nullspec a b -> ToFields a b -> ToFields (Maybe a) (MaybeFields b)

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

  10. traverseMaybeFields :: SelectArr a b -> SelectArr (MaybeFields a) (MaybeFields b)

    opaleye Opaleye.Internal.MaybeFields

    No documentation available.

Page 278 of many | Previous | Next