Talk:Yet Another Haskell Tutorial/Monads

Defining "Either String" as a Monad only works for me if I use -fglasgow-exts. Is it because it is a multi-parameter type class? 213.184.192.82 14:18, 22 January 2007 (UTC) (Harald Korneliussen, vintermann at gmail)


 * I'm not sure, although that does not sound like the reason (the Monad typeclass only wants one parameter). Maybe you could look into the GHC manual on extensions to find out, or ask on the Haskell café mailing list.  I'm not competent enough to answer :-/ -- Kowey 10:56, 24 January 2007 (UTC)

I have read the module and tried examples, but searchAll5 and searchAll7 (I checked this one with solution) don't work unless StateT is added as instance of MonadPlus. Have I done something wrong, or is there a problem in examples? 20:11, 11 April 2007 (UTC)

Hi! You have a line:

"And this is completely valid Haskell at this point: if you defined a function f :: Show a => String -> a, you could compile and run this program)"

Could you please include how to do that in ghci?

45.56.148.99 (discuss) 20:36, 28 August 2016 (UTC) Thanks!