Conversation
|
No |
|
But it compiles fine with coq 8.13. |
|
Tomorrow I'll do fields_t/fields/construct, since there is a missing feature. |
|
Also, questions are welcome if the code is unclear. |
|
These pattern-matchings exist because we manipulate positives, if we used native ints, we would have a cascade of |
|
I tried with natives but construct does not type check well since you dont get the substitution for free anymore |
|
Indeed, it is probably better to begin with the positive case then. |
|
I wrote some code for fields_t and fields. It should also generate construct, since it is entangled, but I have no time for it. It should not be too hard... We can either do it together the next week I'm at the lab, or someone can try this on his own. I don't think I'll have time tomorrow or Friday. |
|
it looks ok, the only bug I can see is the first one mentioned here: https://lpcic.github.io/coq-elpi/tutorial_elpi_lang.html#pitfalls |
|
Hint: you can directly construct Hint: |
|
A small bug that I've just discovered: as we use the name of the type in the name of the generated functions, there is an error if we give an absolute path, e.g. |
|
The "clean" fix: https://github.com/LPCIC/coq-elpi/blob/master/elpi-builtin.elpi#L290 |
|
hurray! |
|
👑 |
I test it using 8.14+rc1 and Elpi 1.11.2, it should work the same on 8.13 and Elpi 1.11.1, but I've no clue if it works on 8.12 + Elpi very old version...