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.
number :: (Num a, Read a, Typeable a) => Text -> Either String aconfig-ini Data.Ini.Config Try to use the Read instance for a numeric type to parse a value, failing with a human-readable error message if reading fails.
>>> number "5" :: Either String Int Right 5 >>> number "hello" :: Either String Int Left "Unable to parse \"hello\" as a value of type Int"
number :: (Show a, Read a, Num a, Typeable a) => FieldValue aconfig-ini Data.Ini.Config.Bidir Represents a numeric field whose value is parsed according to the Read implementation for that type, and is serialized according to the Show implementation for that type.
numberToInteger :: Number -> Maybe Integerconfig-value Config Convert a number to a Integer. Warning: This can use a lot of memory in the case of very large exponent parts.
numberToRational :: Number -> Rationalconfig-value Config Convert a number to a Rational. Warning: This can use a lot of memory in the case of very large exponent parts.
number :: Applicative f => (Number -> f Number) -> Value a -> f (Value a)config-value Config.Lens numberCoefficient :: Number -> !Rationalconfig-value Config.Number No documentation available.
numberRadix :: Number -> !Radixconfig-value Config.Number No documentation available.
numberToInteger :: Number -> Maybe Integerconfig-value Config.Number Convert a number to a Integer. Warning: This can use a lot of memory in the case of very large exponent parts.
numberToRational :: Number -> Rationalconfig-value Config.Number Convert a number to a Rational. Warning: This can use a lot of memory in the case of very large exponent parts.
number :: (PositionalSystem s, Num α, Monad μ, CharParsing μ) => s -> μ αdata-textual Data.Textual.Integral