io-string-like: Classes to handle Prelude style IO functions for different datatypes

[ bsd3, data, library ] [ Propose Tags ]

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]
License BSD-3-Clause
Copyright Copyright: (c) 2018 Clinton Mead
Author Clinton Mead
Category Data
Home page
Bug tracker
Source repo head: git clone
Uploaded by clinton at Sun Jan 14 09:07:10 UTC 2018
Distributions NixOS:
Downloads 145 total (18 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-01-14 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees