
3 Jul
2012
3 Jul
'12
5:27 p.m.
On Tue, Jun 26, 2012 at 6:19 PM, Tillmann Rendel
How would you implement this requirement in Haskell without changing the line "amount (Leaf x) = x"?
The hflags library [http://hackage.haskell.org/package/hflags] seems to do that, however...
(I actually see three ways of doing this in Haskell, but all have serious drawbacks and do not fully solve the problem).
...it uses the unsafe IO trick [http://www.haskell.org/haskellwiki/Top_level_mutable_state], which may be one of those three ways you aren't fond of.