@hackage / io-string-like

Classes to handle Prelude style IO functions for different datatypes

Latest0.1.0.1

About

Metadata

  • Last updated , by HerbertValerioRiedel
  • License BSD-3-Clause
  • Maintained by: clintonmead@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

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.