On Tue, Jun 26, 2012 at 6:19 PM, Tillmann Rendel
<[email protected]> wrote:
> 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.

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to