Open vikraman opened 6 years ago
I realized that you're already investigating this, so #1194, #1195, #1196 are related.
I don't see the direct relationship to the other issues mentioned. It seems that the primary parsing problem in this issue is that a pattern in a measure (measurePatP
) is not allowed to be a plain variable, but must essentially be a constructor application. I am not sure whether this restriction is fully justified.
Here is a minimal example of a VerifiedEq instance using class measure, which does not work:
http://goto.ucsd.edu:8090/index.html#?demo=permalink%2F1513490381_19482.hs
The error is:
Here is the full example, with a product instance that also fails to parse:
https://github.com/iu-parfunc/verified-instances/blob/0be45fc26d84fe294506e9553048a1413dae0962/src/GHC/Classes/VerifiedEq.hs
/cc @RyanGlScott