Include mtl types/functions? #67

Closed
snoyberg opened this Issue Jan 15, 2014 · 3 comments

Projects

None yet

2 participants

@snoyberg
Owner

How much of the mtl, if any, should be exported by classy-prelude? I can certainly picture Identity, ReaderT, WriterT, etc types being included, and possibly even the MonadReader, MonadWriter, etc typeclasses. One downside is that names like ask, get, and put may be common enough in user code that it could cause a conflict.

I don't have a strong opinion on this at all, I'm interested in input.

@jwiegley
Contributor

I would be for it, except what to do when the user wants to use RWS in their code? Wouldn't they now have a set of naming conflicts from classy-prelude which requires a hiding list to be repeated in each module?

@snoyberg
Owner

There shouldn't be any naming conflicts, since we'd just re-export the names verbatim from RWS. The only problem would be the conflicting type and constructor names between strict and lazy variants.

@snoyberg
Owner

I've included some simple ones: Identity and ReaderT.

@snoyberg snoyberg closed this Aug 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment