[Haskell-beginners] Monad transformers

Andrew Bernard andrew.bernard at gmail.com
Sat Sep 19 01:00:25 UTC 2015


Greetings All,

While I admire Haskell enormously, as a an intermediate beginner I find it difficult to know what is normal Haskell style for real world programming. On the subject of monad transformers, the paper by Martin Grabümller titled 'Monad Transformers Step by Step' gives an example of an evaluator using monad transformers with the following type:

type Eval6 α = ReaderT Env (ErrorT String (WriterT [String] (StateT Integer IO))) α

Is this how normal Haskell is developed and written in practice? I find the type and the function impenetrably dense and difficult to understand. Should I be aspiring to have my functions look and work like this? Of course it depends on what you want to do, but the essence of the question is, does Haskell ultimately end up looking like this for any real programming, beyond textbook list manipulation functions?

Andrew


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150919/3f69a422/attachment.html>


More information about the Beginners mailing list