-
Notifications
You must be signed in to change notification settings - Fork 645
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
Order-independent implementation of SubList for Effects #2864
Conversation
This implementation has what seems to me to be unnecessary complexity due to needing to figure out how to get the Handler eff m type class resolution to be inferred through-out the Env re-ordering code - envElem and dropEnv is a good example of this. I think that possibly someone else could make this a bit cleaner, but it works in my tests.
I apologize - I typed in the wrong issue ref number for some reason (brain fart...). This should ref issue #1837 |
Cheers for looking at this, is it possible for you to add your tests to the test suite demonstrating the new functionality. |
So, I have some tests that I'm almost ready to add. I ran into another issue however. |
…otal directive for dropEnv where I cannot figure out how to deal with the failing case (which I'm pretty sure is impossible).
Thanks for this! I'd like to play around before I merge into master, though, since I'm about to do a release and I'd like to make sure it works on the effects code I have which really exercises this. In the mean time, if you get around to fixing the conflicts before I do that would be most helpful. |
As far as I can tell, this works very well, thanks! Sorry for taking so long to sort out the merge conflicts, but it's done now and I've updated it for the latest export rules and so on. |
Oh looks like you merged in the Dockerfile I created too. Was that intentional? This Dockerfile is useful and could be auto-built by dockerhub so that people can quickly pull a docker image for building idris code... That may actually be the quickest way to get an Idris repl up an running on a new machine now that I think of it. If you have docker installed you can try it like this: Also, melvar had showed me how to avoid the |
I fixed the dropEnv in a different patch. Didn't notice the Dockerfile I did notice about Elem too, but that can be fixed easily enough. On 17/03/2016 16:21, Aaron Craelius wrote:
|
This is my first attempt at solving #1837 - Ordering of Effects when calling effectual programs
This implementation has what seems to me to be unnecessary complexity due to needing to figure out how to get the Handler eff m type class resolution to be inferred through-out the Env re-ordering code - envElem and dropEnv is a good example of this. I think that possibly someone else could make this a bit cleaner, but it works in my tests.