Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Monad transformers libraries - which one to use? [closed]

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?

like image 673
Tener Avatar asked Apr 26 '11 22:04

Tener


1 Answers

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.

like image 86
Don Stewart Avatar answered Oct 14 '22 16:10

Don Stewart