Re: [Haskell-cafe] lightweight alternative to mtl?

2012-06-18 Thread Silvio Frischknecht
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 An other approach is to just write the monad you want your self. If you understand monads it's not very difficult (just a few lines). It gives you exactly the monad you want without all the complicated abstraction. And error messages should be very

[Haskell-cafe] lightweight alternative to mtl?

2012-06-16 Thread Anton Kholomiov
What are you using instead of mtl? I need simple type for State. The more classy it gets the harder error messages are to understand. I've installed new package. Silently it installed new mtl. And here I'm staring into three lines of code for half an hour trying to understand where I misused the

Re: [Haskell-cafe] lightweight alternative to mtl?

2012-06-16 Thread Ertugrul Söylemez
Anton Kholomiov anton.kholom...@gmail.com wrote: What are you using instead of mtl? I need simple type for State. The more classy it gets the harder error messages are to understand. I've installed new package. Silently it installed new mtl. And here I'm staring into three lines of code

Re: [Haskell-cafe] lightweight alternative to mtl?

2012-06-16 Thread Roman Cheplyaka
* Anton Kholomiov anton.kholom...@gmail.com [2012-06-16 17:59:23+0400] It's class for strict and lazy states. Maybe it's better to take approach of containers (the same interface and different modules)? The lazy and strict State monads differ only in their = operator. Since you don't have

Re: [Haskell-cafe] lightweight alternative to mtl?

2012-06-16 Thread Anton Kholomiov
I'd rather use 'transformers' then. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe