Repository navigation
Support Control.Monad.Trans.{Writer,RWS}.CPS from transformers 0.5.6 - #67
Conversation
|
It could fix #38 |
|
At a glance, this looks great! But could you remove the version bump? That's something that's typically done prior to a release, and not based on any one contribution alone. |
|
@chessai Sure, I’ve removed the version bump. I’ve left the Haddock annotations alone, so they still say |
|
@chessai Pinging you about this. Is there anything in the way of getting this merged? |
|
Thanks for the ping. I see one problem, currently: The lower bound of the transformers dependency has been bumped from 4 to 5.6. It's possible that this could disrupt some users. IMO we should keep the old bounds and wrap all this code in CPP. |
|
Also keeping the since pragmas as you currently have them is fine, IMO. |
|
I’m happy to put the CPP in if you think the version bump on |
|
Personally i don't see a huge issue. Perhaps @hvr or @RyanGlScott could weigh in here? |
|
In the absolute worst case scenario, if people complain, we could always release a version with the CPP and relaxed bounds after the fact… it isn’t like releasing a version with the tighter bounds locks us into them or anything. |
|
I think I'm in favor of CPP as well. This is not to say that we should continue to support all versions of |
|
I second ryan's comment, the CPP is needed, at least for now. |
Maybe I’m misunderstanding some distinction, but isn’t In any case, what you said is compelling, so I’m happy to add the CPP. I do have one question, though: is there any way to conditionally include an entire module in |
Good point, I was somewhat vague in my use of the phrase "boot library" earlier. Both
Yes, that should be fine. Do make sure to leave a mention of this somewhere in the surrounding Haddocks. |
Got it, thanks for the explanation!
Alright, I’ve pushed an updated set of changes that does that. |
|
Thanks! |
transformers-0.5.6.0adds newControl.Monad.Trans.Writer.CPSandControl.Monad.Trans.RWS.CPSmonad transformers, so this PR adds support for them inmtl.I’ve taken the liberty of bumping the version to 2.3, since this seems like a significant enough change to do so, and picking what the next release’s version number will be was necessary for the
@sinceannotations in the docs. Let me know if you’d like me to do something else, and I’ll change it.