Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.ByteString.Nums.Careless
Description
Careless conversion of ByteString
s to numbers, ignoring bytes that
aren't hex or decimal digits.
Documentation
class Num n => Intable b n where Source #
Types that can be read from integer strings. Parses only decimal digits. Signed types can be read from strings that begin with a plus or minus; unsigned types are read from strings consisting solely of decimal digits.
Instances
class Num n => Hexable b n where Source #
Types that can be read from hexadecimal strings. Characters that are not
hexadecimal digits are skipped over. One pleasant consequence of this is
that a leading 0x
is simply ignored.
Instances
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 |