Package0.5.0.15Data
bytestring-lexing
Efficiently parse and produce common integral and fractional numbers.
- Version0.5.0.15
- CategoryData
- LicenceBSD-3-Clause
- Authorwren gayle romano, Don Stewart
- Maintainerwren@cpan.org
- Homepagewrengr.org/software/hackage.html
- Pinned byhackage bytestring-lexing 0.5.0.15
- Sourcehackage.haskell.org/package/bytestring-lexing-0.5.0.15
Modules
2 modules- Data.ByteString.Lex.Fractional8Functions for parsing and producing Fractional values from/to
- Data.ByteString.Lex.Integral9Functions for parsing and producing Integral values from/to
Description
The bytestring-lexing package offers extremely efficient ByteString parsers for some common lexemes: namely integral and fractional numbers. In addition, it provides efficient serializers for (some of) the formats it parses.
As of version 0.3.0, bytestring-lexing offers the best-in-show parsers for integral values. (According to the Warp web server's benchmark of parsing the Content-Length field of HTTP headers.) And as of version 0.5.0 it offers (to my knowledge) the best-in-show parser for fractional/floating numbers.
Some benchmarks for this package can be found at: https://github.com/wrengr/bytestring-lexing/tree/master/bench/html
Depends on
2 packages- base-4.20.2.0with GHC
- bytestring-0.12.2.0with GHC