Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.ByteString.Nums.Careless.Float
Synopsis
- class (Intable b f, Fractional f) => Floatable b f where
- float :: b -> f
- strict_float :: Fractional f => ByteString -> f
- lazy_float :: Fractional f => ByteString -> f
- point :: Char -> Bool
Documentation
class (Intable b f, Fractional f) => Floatable b f where Source #
Types that can be read from floating point strings. A floating point string is taken to be a string of digits with up to one comma or period mixed in with the digits.
Instances
Floatable ByteString Double Source # | |
Defined in Data.ByteString.Nums.Careless.Float | |
Floatable ByteString Float Source # | |
Defined in Data.ByteString.Nums.Careless.Float | |
Floatable ByteString Rational Source # | |
Defined in Data.ByteString.Nums.Careless.Float | |
Floatable ByteString Double Source # | |
Defined in Data.ByteString.Nums.Careless.Float | |
Floatable ByteString Float Source # | |
Defined in Data.ByteString.Nums.Careless.Float | |
Floatable ByteString Rational Source # | |
Defined in Data.ByteString.Nums.Careless.Float |
strict_float :: Fractional f => ByteString -> f Source #
lazy_float :: Fractional f => ByteString -> f Source #