Lift

Plain source file: base/lib/Lift.hs (2001-09-28)

Lift is imported by: OrigTiMonad, ReAssocModule, Deriving, BaseStruct2Alfa, PFE4.

module Lift where
import Maybe(maybeToList)
import PrettyPrint

---
-- An experiment:

class Lift m1 m2 where
  lift :: m1 a -> m2 a

instance (Printable err,Monad m) => Lift (Either err) m where
  lift = either (fail.pp) return

instance Lift Maybe [] where
  lift = maybeToList

Index

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