simonmar / monad-par

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Direct module exposes way too much

treeowl opened this issue · comments

I think it's pretty weird that Direct.Par derives a MonadReader Sched instance. It's also pretty weird that Direct exposes the Sched type despite not offering any documentation of it or any functions for working with it. I think it probably makes sense to remove that instance and require users to import DirectInternal to get the Sched type.

Agreed, and I definitely support efforts to clean up and document the API here.