IdM

Plain source file: base/lib/Monads/IdM.hs (2003-04-24)

IdM is imported by: MapDeclM.

module IdM where

import MT
import Control_Monad_Fix


newtype IdM a   = I { removeId :: a }

instance Monad IdM where
  return        = I
  I x >>= f     = f x

instance Functor IdM where
  fmap f (I x)  = I (f x)

instance HasBaseMonad IdM IdM where
  inBase        = id

instance MonadFix IdM where
  mfix f        = let r@(I x) = f x in r


Index

(HTML for this module was generated on 2006-08-12. About the conversion tool.)