Reading from Text and ByteString
|Version on this page:||0.3.1|
|LTS Haskell 19.33:||0.3.1@rev:1|
|Stackage Nightly 2023-03-28:||0.3.1@rev:1|
|Latest on Hackage:||0.3.1@rev:1|
Maintained by firstname.lastname@example.org
This version can be pinned in stack with:
Module documentation for 0.3.1
Depends on 3 packages(full list with versions):
Used by 1 package in lts-18.28(full list with versions):
The Read type class is very useful for building data types from String representations. But String has high overhead, so sometimes it isn’t suitable for applications where space usage and performance are important. This library provides a simpler version of Read’s functionality for Text and UTF8 encoded ByteStrings.
- Reinstate Text and ByteString instances because some users require them.
- Add yes/no and y/n parsing to the Bool instance
- Remove Readable instances for ByteString and Text because they are probably not what the user wants and could cause compilation to succeed when you probably want to see an error.
- Fix fromBS for ByteString so it is a correct passthrough instead of doing encodeUtf8 . decodeUtf8 under the hood.
- Use decodeUtf8’ so that we can catch character encoding exceptions and return mzero instead of generating an exception.