Re: Deep confusion about monads

16 Aug
2001
16 Aug
'01
7:44 p.m.
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
8678
Age (days ago)
8678
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ashley Yakeley