-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Accum effect and carriers #391
Conversation
|
Fixes #389 |
Sorry I’m late on this one, but thanks for the PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fantastic start, thank you @turion!
@turion: Heads up that I’m about to release v1.1, which means that the |
@robrix I noticed that the monoid instance for |
@robrix I cannot figure out why this one test fails. It claims that the |
Ah. I did indeed test a property that isn't fulfilled by the |
I think it doesn't make sense to base |
For some reason, the test suite often hangs. I wonder whether I introduced a bug in |
I haven't found the mistake in Also, I haven't fixed the expected law yet, but looking at the test it seems it's going to be simple. |
e49c6a4
to
2649c05
Compare
Hacking on fused effects is a lot of fun, but maintaining compatibility with older GHC versions is not :/ I usually drop older versions as soon as the most idiomatic code for newer versions doesn't compile there anymore |
Unfortunately, we don’t have a good way to gauge what our users’ needs are here. We’ve discussed this in #185, but I don’t feel like we came to any really solid answer. For the moment I’d prefer not to drop back-compat for changes that would otherwise be a minor version bump unless it’s completely intractable to maintain it (and even then, let’s chat about it some more first 😊). |
I meant it more like this: My motivation to contribute with some new, interesting features is high, but it is very low to figure out how to fix the 8.2.2 pipeline, because I need to chase an uninteresting bug with a compiler version that is different from the rest of my stack. |
Side question: Is there any way to run only a specific set of tests in |
@robrix Your suggestion to make the lambda in |
The only thing left is fixing older GHC versions. Let's see how the pipelines work out. |
Ping @robrix |
Can you merge master into this? I’d like to add it as part of 1.1.2.0. (Apologies for the long wait!) |
Approved CI. Let the good times roll! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@turion: I'm terribly sorry this has taken me so long to get back to, and I'm so grateful for your patience. You've done a fantastic job here, and I'm delighted to add it to the library!
@turion Looks like you'll need to import Edit: the tests for |
@turion: Apologies for hijacking your PR, I just couldn't wait to see CI go green ✅ 😀 |
Ah, I guess we need to CPP-guard (part of) the tests, too. |
@turion: I'm really feeling your earlier point about supporting older versions of |
It's green! It's green! Quick, merge before CI notices!! |
Wow, the last two hours apparently were an exciting ride! |
Yeah, I respect your effort to go all the way down to 8.2 a lot. In my hobby projects (which are less used than |
Hah, it seems you actually agree in principle 😆 #185 (comment) |
This is still work in progress, but I'm happy for some guidance. There are a few places where I've just tried to follow the conventions, but I'm not sure whether it makes sense.