Parse and produce literals efficiently from strict or lazy bytestrings.

Version on this page:
LTS Haskell 8.1:
Stackage Nightly 2017-02-19:
Latest on Hackage:
BSD2 licensed by wren gayle romano, Don Stewart
Maintained by

Module documentation for


This is a simple package and should be easy to install. You should
be able to use one of the following standard methods to install it.

-- With cabal-install and without the source:
$> cabal install bytestring-lexing

-- With cabal-install and with the source already:
$> cd bytestring-lexing
$> cabal install

-- Without cabal-install, but with the source already:
$> cd bytestring-lexing
$> runhaskell Setup.hs configure --user
$> runhaskell Setup.hs build
$> runhaskell Setup.hs test
$> runhaskell Setup.hs haddock --hyperlink-source
$> runhaskell Setup.hs copy
$> runhaskell Setup.hs register

The test step is optional and currently does nothing. The Haddock
step is also optional.


An attempt has been made to keep this library portable. However,
the decimalPrecision function in Data.ByteString.Lex.Fractional
requires ScopedTypeVariables for efficiency. If your compiler does
not support ScopedTypeVariables, this should be easy enough to fix.
Contact the maintainer if this is an issue for you.

----------------------------------------------------------- fin.

Changes (2015-05-06):
- Fixed the benchmarking url (2015-05-06):
- Cleaned up the README file
0.5.0 (2015-05-06):
- Corrected the License field in the .cabal file to say BSD2 (instead of BSD3)
- Data.ByteString.Lex.{Double,.Lazy.Double}: removed
- Data.ByteString.Lex.Fractional: added based on the inefficiency of the old Alex-based parsers, as demonstrated by Hirotomo Moriwaki's bytestring-read (v0.3.0). (2015-05-30):
- Moved VERSION to CHANGELOG (2014-03-07):
- Updated the .cabal file to require newer alex for newer ghc.
0.4.3 (2013-03-21):
- Data.ByteString.Lex.Integral: Corrected a segmentation fault in packDecimal.
0.4.2 (2013-03-20):
- Data.ByteString.Lex.Integral: Improved packDecimal.
0.4.1 (2012-00-00):
- Data.ByteString.Lex.Integral: Added buffer overflow check for asHexadecimal
0.4.0 (2012-02-03):
- Data.ByteString.Lex.Integral: added readDecimal_

0.3.0 (2012-01-28):
- Added Data.ByteString.Lex.Integral
- Converted repo to Darcs-2 hashed format.
- wren ng thornton took over maintainership.

0.2.1 (2010-02-14):
0.2 (2008-10-15):
- Add support for lexing lazy bytestrings.

0.1.2 (2008-07-23): (2008-07-23): (2008-07-19):
0.1.0 (2008-07-19):
comments powered byDisqus