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

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]

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.

Downloads

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'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1
Dependencies base (>=4.9 && <5), binary, bytestring, text [details]
License BSD-3-Clause
Copyright Copyright: (c) 2018 Clinton Mead
Author Clinton Mead
Maintainer clintonmead@gmail.com
Revised Revision 2 made by HerbertValerioRiedel at 2018-09-30T22:41:44Z
Category Data
Home page https://github.com/clintonmead/io-string-like#readme
Bug tracker https://github.com/clintonmead/io-string-like/issues
Source repo head: git clone https://github.com/clintonmead/io-string-like
Uploaded by clinton at 2018-01-14T11:05:58Z
Distributions NixOS:0.1.0.1
Reverse Dependencies 1 direct, 1 indirect [details]
Downloads 1641 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-01-14 [all 1 reports]