-
Notifications
You must be signed in to change notification settings - Fork 632
Fix lamToLet in Erasure.hs
#4851
Conversation
|
This makes sense to me. Nice to have someone who knows the feature well jump in! The CI failure seems like a fluke. https://travis-ci.org/github/idris-lang/Idris-dev/jobs/680313824 seems to need restarting |
|
I have tried to pull this branch, install it (using I'll try to revert back to an hackage-sourced idris1 and see whether that solves |
|
On Tue, Apr 28, 2020 at 03:00:06AM -0700, G. Allais wrote:
I have tried to pull this branch, install it (using `make install`)
and rebuild my PR however I am getting inexplicable out of scope
errors for `throw` & `catch` in idris2's `Idris/ModTree` now.
Oh. I haven't tried to rebuild Idris2 using this branch.
I'll try after work.
|
|
It seems unrelated: I am getting the same error with an hackage-installed idris1. Edit: now I'm getting an out of scope error for |
|
I get the same edit: actually the list problem might be unrelated |
|
Erasure does not affect any terms before the IR/ "Unexpected input" in |
|
BTW @gallais could your scope errors be caused by outdated IBC files? I can imagine that tweaking erasure analysis makes cached runtime code in IBC files no longer make sense, and then fail in mysterious ways. Should I bump the IBC version? |
Sounds like a good idea. I'll have another crack at this once the version is |
GoodHypergraphCategory was taking a _very_ long time to compile what's more, it triggered a bug in the compiler relating to how indices are tracked in lambda declarations. This problem is supposed to be resolved with #4851 (idris-lang/Idris-dev#4851) This bypasses the bug and improves compile times as well as add error reporting on the TDef returned by the API in order to more easily debug the source of failures when checking as petrinet description.
GoodHypergraphCategory was taking a _very_ long time to compile what's more, it triggered a bug in the compiler relating to how indices are tracked in lambda declarations. This problem is supposed to be resolved with #4851 (idris-lang/Idris-dev#4851) This bypasses the bug and improves compile times as well as add error reporting on the TDef returned by the API in order to more easily debug the source of failures when checking as petrinet description.
GoodHypergraphCategory was taking a _very_ long time to compile what's more, it triggered a bug in the compiler relating to how indices are tracked in lambda declarations. This problem is supposed to be resolved with #4851 (idris-lang/Idris-dev#4851) This bypasses the bug and improves compile times as well as add error reporting on the TDef returned by the API in order to more easily debug the source of failures when checking as petrinet description.
|
Is this ready to merge? |
|
It should be. Let's see what Travis says. |
|
The travis failures are extremely strange. |
|
The AppVeyor failure is even stranger. |
|
I have dropped GHC 8.2 in Travis on master, no need to support it anymore, and the Idris 2 job wasn't working. So it looks fine. Appveyor must have dumped core or something on one of the tests, but only two failed. So good enough, I guess. |
|
Missed the 1.3.3 release I did last night though. |
GoodHypergraphCategory was taking a _very_ long time to compile what's more, it triggered a bug in the compiler relating to how indices are tracked in lambda declarations. This problem is supposed to be resolved with #4851 (idris-lang/Idris-dev#4851) This bypasses the bug and improves compile times as well as add error reporting on the TDef returned by the API in order to more easily debug the source of failures when checking as petrinet description.
There were two bugs:
letbinders.This caused problems in https://github.com/edwinb/Idris2/pull/333 and is (hopefully) fixed in this patch.