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. mkLitNumberMaybe :: Platform -> LitNumType -> Integer -> Maybe Literal

    ghc GHC.Types.Literal

    Create a numeric Literal of the given type if it is in range

  2. mkLitNumberWrap :: Platform -> LitNumType -> Integer -> Literal

    ghc GHC.Types.Literal

    Make a literal number using wrapping semantics if the value is out of bound.

  3. bignumUnit :: Unit

    ghc GHC.Unit.Types

    No documentation available.

  4. bignumUnitId :: UnitId

    ghc GHC.Unit.Types

    No documentation available.

  5. type family XNumTy x

    ghc Language.Haskell.Syntax.Extension

    No documentation available.

  6. HsNumTy :: XNumTy pass -> Integer -> HsTyLit pass

    ghc Language.Haskell.Syntax.Type

    No documentation available.

  7. fromPersistValueEnum :: (Enum a, Bounded a) => PersistValue -> Either Text a

    persistent Database.Persist.Class.PersistEntity

    Convenience function for getting a free PersistField instance from a type with an Enum instance. This function also requires a Bounded instance to improve the reporting of errors. Example usage in combination with toPersistValueEnum:

    data SeverityLevel = Low | Medium | Critical | High
    deriving (Enum, Bounded)
    instance PersistField SeverityLevel where
    fromPersistValue = fromPersistValueEnum
    toPersistValue = toPersistValueEnum
    

  8. toPersistValueEnum :: Enum a => a -> PersistValue

    persistent Database.Persist.Class.PersistEntity

    Convenience function for getting a free PersistField instance from a type with an Enum instance. The function derivePersistField from the persistent-template package should generally be preferred. However, if you want to ensure that an ORDER BY clause that uses your field will order rows by the data constructor order, this is a better choice. Example usage in combination with fromPersistValueEnum:

    data SeverityLevel = Low | Medium | Critical | High
    deriving (Enum, Bounded)
    instance PersistField SeverityLevel where
    fromPersistValue = fromPersistValueEnum
    toPersistValue = toPersistValueEnum
    

  9. SqlNumeric :: Word32 -> Word32 -> SqlType

    persistent Database.Persist.Types

    No documentation available.

  10. parseBoundedEnumOf :: (Bounded a, Enum a) => (a -> Text) -> Text -> Either Text a

    http-api-data Web.HttpApiData

    Parse values based on a precalculated mapping of their Text representation.

    >>> parseBoundedEnumOf toUrlPiece "true" :: Either Text Bool
    Right True
    
    For case insensitive parser see parseBoundedEnumOfI.

Page 169 of many | Previous | Next