
17 May
2007
17 May
'07
1:45 p.m.
eeoam:
H|i,
Does anyone know of a simple and straightforward way to use global variables in Haskell?
E.
The usual way is to run the code that needs a global variable in a State monad. The next answer is: you don't really need global variables, since you don't have mutable variables anyway :-) -- Don