Hacker News new | ask | show | jobs
by waluigi 2827 days ago
Monad Transformers aren't _that_ bad, the MTL style of doing things makes it all pretty painless.

It also provides a huge opportunity for testing. At a very high level, you describe all of your effects as a series of embedded, compostable DSLs that you define interpreters for. The awesome part is that you can switch out the interpreters at will, so you can, for example, replace something that handles network requests with something that returns dummy data almost effortlessly.

1 comments

I think we have different pain thresholds. I would consider this very painful:

http://hackage.haskell.org/package/transformers-0.5.5.0/docs...

> It also provides a huge opportunity for testing. [...]

That's a neat point, thanks for bringing it up.