> I have attached a patch which derives MonadReader, MonadWriter, MonadState,
> MonadRWS, MonadCont, and MonadError for XMLGenT.
>
> Now if you wrap XMLGenT around a monad that supports MonadWriter, for
> example, you can just do, tell "foo" instead of lift $ tell "foo". Which
> makes things cleaner in my experience.
I agree, this is definitely a very useful thing.
> I am not sure what the drawbacks would be. HSX already depends on mtl, and
> this patch does not require that the transformed monads support any of those
> classes. It just allows you to get at them directly when the transformed
> monad does. I believe that is the point of having those classes in the first
> place?
I don't perceive any drawbacks either, rather this falls under the
category of things that should have been there all along. Thanks!
/Niklas
--
You received this message because you are subscribed to the Google Groups "Haskell Server Pages" group.
To post to this group, send email to
haskell-se...@googlegroups.com.
To unsubscribe from this group, send email to
haskell-server-p...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/haskell-server-pages?hl=en.