
3 Feb
2012
3 Feb
'12
10:37 p.m.
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/