X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=RWST.dcl;h=70a07e15567c076a82129ad4bfbf0c78b7dc0eaa;hb=392b823861ae02cc42454abce8c97e606931c3d6;hp=334df7e84ceb3180b9f6d8b3a6117acb7dc30ac3;hpb=bc9dea4b8b3d12283a6192bd688c1f2e24bd7198;p=cc1516.git diff --git a/RWST.dcl b/RWST.dcl index 334df7e..70a07e1 100644 --- a/RWST.dcl +++ b/RWST.dcl @@ -2,7 +2,6 @@ definition module RWST from Control.Applicative import class Applicative from Control.Monad import class Monad -from Data.Void import :: Void from Data.Functor import class Functor from Data.Functor.Identity import :: Identity from Data.Monoid import class Monoid, class Semigroup @@ -36,7 +35,7 @@ local :: (r -> r) (RWST r w s m a) -> RWST r w s m a | Monoid w & Monad m asks :: (r -> a) -> RWST r w s m a | Monoid w & Monad m // Writer operations -tell :: w -> RWST r w s m Void | Monoid w & Monad m +tell :: w -> RWST r w s m () | Monoid w & Monad m listen :: (RWST r w s m a) -> RWST r w s m (a, w) | Monoid w & Monad m pass :: (RWST r w s m (a, w -> w)) -> RWST r w s m a | Monoid w & Monad m listens :: (w -> b) (RWST r w s m a) -> RWST r w s m (a, b)| Monoid w & Monad m @@ -44,8 +43,8 @@ censor :: (w -> w) (RWST r w s m a) -> RWST r w s m a | Monoid w & Monad m // State operations get :: RWST r w s m s | Monoid w & Monad m -put :: s -> RWST r w s m Void | Monoid w & Monad m -modify :: (s -> s) -> RWST r w s m Void | Monoid w & Monad m +put :: s -> RWST r w s m () | Monoid w & Monad m +modify :: (s -> s) -> RWST r w s m () | Monoid w & Monad m gets :: (s -> a) -> RWST r w s m a | Monoid w & Monad m // Lifting other operations