[Haskell-cafe] Martin Odersky on "What's wrong with Monads"

Alvaro Gutierrez radical at google.com
Tue Jul 3 23:27:52 CEST 2012

On Tue, Jun 26, 2012 at 6:19 PM, Tillmann Rendel
<rendel at informatik.uni-marburg.de> 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.

More information about the Haskell-Cafe mailing list