[Haskell-cafe] New user, pardon what may be a dumb question

Mark Goldman bitshifter at gmail.com
Thu Mar 31 12:56:58 EST 2005


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


More information about the Haskell-Cafe mailing list