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.
-
ghc GHC.Types.Literal Word16# - exactly 16 bits
-
ghc GHC.Types.Literal Word32# - exactly 32 bits
-
ghc GHC.Types.Literal Word64# - exactly 64 bits
-
ghc GHC.Types.Literal Word8# - exactly 8 bits
LitNumber :: LitNumType -> Integer -> Literalghc GHC.Types.Literal Any numeric literal that can be internally represented with an Integer.
litNumBitSize :: Platform -> LitNumType -> Maybe Wordghc GHC.Types.Literal Number of bits
litNumCheckRange :: Platform -> LitNumType -> Integer -> Boolghc GHC.Types.Literal Check that a given number is in the range of a numeric literal
litNumCoerce :: LitNumType -> Platform -> Literal -> Literalghc GHC.Types.Literal Coerce a literal number into another using wrapping semantics.
litNumIsSigned :: LitNumType -> Boolghc GHC.Types.Literal Indicate if a numeric literal type supports negative numbers
litNumNarrow :: LitNumType -> Platform -> Literal -> Literalghc GHC.Types.Literal Narrow a literal number by converting it into another number type and then converting it back to its original type.