Safe Haskell | None |
---|
Parsing and unparsing for commonly used datatypes
- unsafeDecimalX :: Int -> Parser Int
- unsafeDecimalXTH :: Int -> Q Exp
- putDecimalX :: Int -> Int -> ByteString
- unsafeDecimalXS :: Int -> Parser Int
- unsafeDecimalXSTH :: Int -> Q Exp
- putDecimalXS :: Int -> Int -> ByteString
- newtype AlphaNum = AlphaNum {
- unAlphaNum :: Int64
- unsafeAlphaNum :: Int -> Parser AlphaNum
- putAlphaNum :: AlphaNum -> ByteString
Documentation
unsafeDecimalX :: Int -> Parser IntSource
unsafeDecimalXTH :: Int -> Q ExpSource
This is a template-haskell based version of unsafeDecimalX
which
generates a fast, unrolled loop
putDecimalX :: Int -> Int -> ByteStringSource
unsafeDecimalXS :: Int -> Parser IntSource
unsafeDecimalXSTH :: Int -> Q ExpSource
putDecimalXS :: Int -> Int -> ByteStringSource
Can keep up to 12 characters from 0..9, A..Z