Closed thoughtpolice closed 6 years ago
(I updated the title to more accurately reflect the problem, given the parse error: the constraint is handled OK, it is merely the record-style syntax that is unexpected by the parser in the event a constraint is present)
Consider the following:
This works fine:
However, using the record syntax for GADT constructors breaks this. The following does not work:
Note that
haskell-src-exts
does handle record syntax for GADT constructors fine -- if you simply remove() =>
, then it will work. It is simply the combination of a constraint and record syntax for the constructor that fails.Version:
haskell-src-exts
1.20.2 (found through usage ofstylish-haskell
).