The io-string-like package
The functions in the Prelude such as "getContents", "putStr" only work for plain Strings.
There are similar functions in "ByteString" for reading and writing, as well as "Text".
This requires one to import the appropriate functions, usually qualified, for the particular datatype one is using. Changing the datatype at the very least involves changing import statements across your program.
The package introduces classes to overload functions like "getContents", "putStr" over multiple datatypes, so implementations can be changed easily.
All the code documentation is in System.IO.StringLike.Impl.
All the other modules are just re-exports.
|Dependencies||base (>=4.7 && <5), binary, bytestring, text [details]|
|Copyright||Copyright: (c) 2018 Clinton Mead|
|Source repo||head: git clone https://github.com/clintonmead/io-string-like|
|Uploaded||Sun Jan 14 11:05:58 UTC 2018 by clinton|
|Updated||Wed Jan 17 09:42:33 UTC 2018 by clinton to revision 1 [What is this?]|
|Downloads||86 total (17 in the last 30 days)|
|Rating||(no votes yet) [estimated by rule of succession]|
|Status||Docs available [build log]
Last success reported on 2018-01-14 [all 1 reports]
Hackage Matrix CI
- io-string-like-0.1.0.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
For package maintainers and hackage trustees