ANN: bytestring-lexing 0.4.0

-------------------------------------------- -- bytestring-lexing 0.4.0 -------------------------------------------- The bytestring-lexing package offers efficient reading and packing of common types like Double and Integral types. -------------------------------------------- -- Changes (since 0.3.0) -------------------------------------------- * Data.ByteString.Lex.Integral: added the function readDecimal_ :: Integral a => ByteString -> a A variant of readDecimal which does not return the tail of the string, and returns 0 instead of Nothing. This is twice as fast for Int64 on 32-bit systems, but has identical performance to readDecimal for all other types and architectures. -------------------------------------------- -- Links -------------------------------------------- Homepage: http://code.haskell.org/~wren/ Hackage: http://hackage.haskell.org/package/bytestring-lexing Darcs: http://community.haskell.org/~wren/bytestring-lexing Haddock (Darcs version): http://community.haskell.org/~wren/bytestring-lexing/dist/doc/html/bytestrin... -- Live well, ~wren

wren ng thornton wrote:
-------------------------------------------- -- Changes (since 0.3.0) --------------------------------------------
* Data.ByteString.Lex.Integral: added the function
readDecimal_ :: Integral a => ByteString -> a
A variant of readDecimal which does not return the tail of the string, and returns 0 instead of Nothing. This is twice as fast for Int64 on 32-bit systems, but has identical performance to readDecimal for all other types and architectures.
Thanks Wren, that is awesome! Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
participants (2)
-
Erik de Castro Lopo
-
wren ng thornton