
31 Mar
2005
31 Mar
'05
5:56 p.m.
I am using ghci to learn Haskell. My question is it possible to assign an object that contains state (for lack of knowing the proper terminology) so a variable or some such from the interactive prompt. More concretely I would like to do something like this non-working code snippet: System.Random> x <- return (mkStdGen 45) System.Random> random x :: (int, StdGen) Thanks