There are many different monad transformers libraries on Hackage. A few seem to get more attention than the others. To name a few: mtl (current version depending on transformers for some reason), transformers, monadLib, monads-tf, mtlx, contstuff.
Which one should be preferred and why? What are their unique features? What about performance?
The Haskell Platform specifies mtl
and transformers
as standard.
If you're unsure, you should just use mtl
.
However, if you have a specific technical reason to look at the new libraries, they tend to address issues or add new features to mtl
. monadLib
in particular has some new features.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With