Closed sweirich closed 5 years ago
Ah, the expected edge cases. This may be tricky to eliminate algorithmically – would a
skip equation Core.hasSomeUnfolding _
edit work instead? That might be simpler.
8180fd58fbed86c2dfad400af9c7c68f70cb9c9a adds the aforementioned skip equation
edit, which was much simpler to add than a pattern redundancy checker. I'm closing this, but I've created #135 to remind us to consider adding automatic redundancy checking.
When I skip all except for the
NoUnfolding
constructor of theUnfolding
data type,hs-to-coq
produces the wrong output for this input.Specifically, the result is:
which Coq rejects because of the redundant pattern.
I'm currently working around by skipping this function.