November 2009
4 posts
Nov 21st
Nov 19th
14 notes
4 tags
Randoms and Haskell
Right now I’m on chapter 15 of my RWH book. This one talks about problems that get complicated without the use of a Monad, one of them is the System.Random API of Haskell. I’m going to start by introducing two typeclasses that this module exports for clarity’s sake: RandomGen: a RandomGen represents an state that holds the random input, I like to think of it like a stream of...
Nov 16th
1 note
Nov 13th