talira

Monad morphism utilities for Haskell monad transformer stacks

open sourceBSD-3-Clausefree

mmorph is a Haskell library of monad morphism utilities, most commonly used for manipulating monad transformer stacks. It exposes the Control.Monad.Morph and Control.Monad.Trans.Compose modules and builds on mtl and transformers.

Problems it solves

  • change the base monad of a Haskell monad transformer stack
  • hoist a computation through layers of monad transformers
  • compose monad transformers in Haskell

Features

  • monad morphism utilities in Control.Monad.Morph
  • transformer composition in Control.Monad.Trans.Compose
  • works with mtl and transformers stacks

Alternatives

The same job

These do what mmorph does.

  1. transformers Concrete functor and monad transformers for Haskell
  2. mtl The Monad Transformer Library
  3. exceptions Extensible optionally-pure exceptions for Haskell
  4. these Haskell's either-or-both data type, with Align for zipping with padding

Compare mmorph with the top 3