Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.ByteString.Nums.Careless.Int
- class Num n => Intable b n where
- int :: b -> n
- lazy_unsigned :: Num n => ByteString -> n
- lazy_signed :: Num a => ByteString -> a
- strict_unsigned :: Num n => ByteString -> n
- strict_signed :: Num a => ByteString -> a
- positive :: Num a => a -> Word8 -> a
- negative :: Num a => a -> Word8 -> a
Documentation
class Num n => Intable b n where
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.
Methods
int :: b -> n
Instances
lazy_unsigned :: Num n => ByteString -> n
lazy_signed :: Num a => ByteString -> a
strict_unsigned :: Num n => ByteString -> n
strict_signed :: Num a => ByteString -> a