Re:The Monad Challenges: Jump start your understanding of mo...
by mightybyte on Tuesday January 19, 2016 @11:21PM
(#10936071)
Hi, I was assuming that people would do their playing around and answer checking in ghci. MCPrelude does not export putStrLn because it is an IO function, which is a monad and I specifically wanted to hide all the prelude's monad stuff. I suggest loading your file in ghci with "ghci Set1.hs". Then you can just type "fiveRands" at the ghci prompt and it will show you the values.
[ Parent
| on HN ]
Re:The Monad Challenges: Jump start your understanding of mo...
by ridiculous_fish on Wednesday January 20, 2016 @12:38AM
(#10936255)
Thanks! It would be great to walk through this, in the same way that it shows the shell commands for installation under "Getting Started."
I hardly ever use the repl because I prefer to keep my tests around. I'm sheepish to admit this, but I only just now learned that you can pass a file to ghci.