lens-prelude-0.2: Alternate prelude that exports lens combinators

Safe HaskellSafe
LanguageHaskell2010

Prelude.Transformers.Strict

Description

This module reexports most of the definitions from the "transformers" package. Strict variants are provided instead of the lazy variants. Notably, the functions for lifting callcc, listen, pass, and catch are left out because there are different variants for every monad transformer.

Error is left out because it is deprecated.

ListT is left out because it is not actually a monad transformer and it is despised by most.

From Strict, we do not export functions like reader, writer,ask, tell, state, etc. that would clash with the identically-named functions that deal specifically with ReaderT, WriterT, and StateT. You will need to import this module qualified to use those functions.

Both Sum and Product are left out because the names of these data types clash with the commonly used newtypes in Monoid.

From Cont, reset and shift have been left out because there is a shift in Bits.