Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
litNumRange :: Platform -> LitNumType -> (Maybe Integer, Maybe Integer)ghc GHC.Types.Literal Get the literal range
litNumWrap :: Platform -> Literal -> Literalghc GHC.Types.Literal Wrap a literal number according to its type using wrapping semantics.
mkLitNumber :: Platform -> LitNumType -> Integer -> Literalghc GHC.Types.Literal Create a numeric Literal of the given type
mkLitNumberMaybe :: Platform -> LitNumType -> Integer -> Maybe Literalghc GHC.Types.Literal Create a numeric Literal of the given type if it is in range
mkLitNumberWrap :: Platform -> LitNumType -> Integer -> Literalghc GHC.Types.Literal Make a literal number using wrapping semantics if the value is out of bound.
-
ghc GHC.Unit.Types No documentation available.
-
ghc GHC.Unit.Types No documentation available.
-
ghc Language.Haskell.Syntax.Extension No documentation available.
HsNumTy :: XNumTy pass -> Integer -> HsTyLit passghc Language.Haskell.Syntax.Type No documentation available.
fromPersistValueEnum :: (Enum a, Bounded a) => PersistValue -> Either Text apersistent 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