-
Notifications
You must be signed in to change notification settings - Fork 0
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
Needs to be updated to account for remote-json's use of natural-transformation #40
Comments
Nice find. What (GHC) version fails? |
It for sure fails with GHC 7.10.3 and 7.10.2. I can draw up a smaller example to test with GHC 7.8.x since HERMIT doesn't support that version of GHC anymore. The only reason it would not fail would be a change to the typechecker between versions that broke the semantics of identity, right? That'd be bad... |
I'm actively heading towards remote-json, which is going to use the remote-monad package. And I'm happy for you to make any changes need to remote-json, or direct me to do so. But the code works in 7.10.3 for me. I'll add a travis instance of 8.X, and see what happens. |
Do you have a local commit you haven't pushed, or are you using an older version of any of the relevant libraries? Here's the exact error I get:
That's with a fresh checkout of natural-transformation, remote-json, and hermit-shell and GHC 7.10.3. I can include my entire package list if you think the issue might be with an old version of one of the compat libraries or something. |
No local changes. A local build of only remote-json though. Yes, what versions of the packages are you using. |
There's my package list dump. I can confirm I'm still having the issue with a local build of remote-json and using natural-transformation from Hackage. |
Can you try build just remote-json, in a local sandbox? |
Sorry, I misunderstood what you were asking for. I've updated my previous comment. |
I've identified a simpler test case that only requires natural-transformation: |
I've reproduced the error (on lilybank) and working on it.
|
We might be able to avoid this if we use
rather than
|
This remote-json commit broke compilation for hermit-shell:
ku-fpg/remote-json@ed3597c
There may be other bugs past this one, but for sure the definition of the remote session needs to be updated:
The use of
id
doesn't properly maintain the scope of the quantified variable introduced by the natural transformation type(~>)
.I'm assuming the appropriate fix here is to add a natural identity transformation to natural-transformation and make hermit-shell's reliance on that library explicit?
The text was updated successfully, but these errors were encountered: