Data.ByteString.Nums.Careless.Float

bytestring-nums-0.3.5: Parse numeric literals from ByteStrings.

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 a => ByteString -> a
- lazy_float :: Fractional a => ByteString -> a
- point :: Char -> Bool

# Documentation

class (Intable b f, Fractional f) => Floatable b f where

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.

Methods

float :: b -> f

Instances

Floatable ByteString Double |
Floatable ByteString Float |
Floatable ByteString Rational |
Floatable ByteString Double |
Floatable ByteString Float |
Floatable ByteString Rational |

strict_float :: Fractional a => ByteString -> a

lazy_float :: Fractional a => ByteString -> a

point :: Char -> Bool