
25 Jun
2010
25 Jun
'10
6:34 a.m.
2. For now, the game is more or less playable in GHCi. But my concern is: When you use GHCi, you are in the IO monad, right? How to had state to this monad? I would like that the player can compose his rule in GHCi, and when he is done, he can submit it in GHCi with something like:
*Nomic> submitRule<myrule> You can store a set of rules in IORef or another IO-mutable type. I
On 25.06.10 12:07, corentin.dupont@ext.mpsa.com wrote: think "you are in the IO monad" is pretty vague. Obviously, GHCi runs pure computations also. -- Best regards, Roman Beslik.