About

Metadata

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

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.2.1
  2. 9.0.1
  3. 8.10.7
  4. 8.8.4
  5. 8.6.5
  6. 8.4.4
  7. 8.2.2
  8. 8.0.2

Readme

In Haskell you very often acquire values using the with... idiom using functions of type (a -> IO r) -> IO r. This idiom forms a Monad, which is a special case of the ContT monad (from transformers) or the Codensity monad (from kan-extensions). The main purpose behind this package is to provide a restricted form of these monads specialized to this unusually common case.

The reason this package defines a specialized version of these types is to:

  • be more beginner-friendly,

  • simplify inferred types and error messages, and:

  • provide some additional type class instances that would otherwise be orphan instances