@hackage deriving-trans0.9.1.0

Derive instances for monad transformer stacks

  • Installation

  • Dependencies (13)

  • Dependents (0)

  • Package Flags

      exceptions
       (on by default)

      Implement instances for exception's type classes.

      logict
       (on by default)

      Implement instances for MonadLogic.

      monad-logger
       (on by default)

      Implement instances for MonadLogger and MonadLoggerIO.

      mtl
       (on by default)

      Implement instances for mtl's type classes.

      primitive
       (on by default)

      Implement instances for PrimMonad.

      random
       (on by default)

      Implement instances for random's type classes.

      resourcet
       (on by default)

      Implement instances for MonadResource.

      unliftio
       (on by default)

      Implement instances for MonadUnliftIO.

Implementing instances for monad transformer stacks can be tedious. mtl defines each instance for each transfomer, but this can be avoided.

Elevator let's you access instances of the underlying monad of a transformer. Composing transformers with ComposeT brings instances into scope during the initialization of a transformer stack.

Elevator can be used with DerivingVia to select a specific transformer to derive instances for a transformer stack. ComposeT composes transformers and accumulates instances in a transformer stack.