File: Transformer.hs

package info (click to toggle)
haskell-foundation 0.0.30-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 932 kB
  • sloc: haskell: 9,124; ansic: 570; makefile: 7
file content (11 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
{-# LANGUAGE ConstraintKinds #-}
module Foundation.Monad.Transformer
    ( MonadTrans(..)
    ) where

import Basement.Compat.Base (Monad)

-- | Basic Transformer class
class MonadTrans trans where
    -- | Lift a computation from an inner monad to the current transformer monad
    lift :: Monad m => m a -> trans m a