Deep confusion about monads

Ashley Yakeley ashley@semantic.org
Thu, 16 Aug 2001 16:44:24 -0700


At 2001-08-16 16:30, I wrote:

>>(>>=) :: IO a -> (a -> IO b) -> IO b
>
>This one is correct.

Whoops! No it's not. It should be:

(>>=) :: (Monad m) => m a -> (a -> m b) -> m b

The other two are however special cases of this type.

-- 
Ashley Yakeley, Seattle WA