[Haskell-cafe] Martin Odersky on "What's wrong with Monads"
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
may be one of those three ways you aren't fond of.
More information about the Haskell-Cafe