Closed nrnrnr closed 2 years ago
Thanks for the issue report.
I think the problem here is in the adhoc rule - the double equal ==
seems to be confusing the parser. This works better:
retrie --adhoc "forall x . not (backendNeedn'tLink x) = backendNeedsLink x"
Ah! Thank you.
It still doesn't work very well because of the '
character in the function's name. I am going to try to submit a pull request to fix that.
I'm trying to use
retrie
to refactor the GHC sources. Operating in thecompiler
subdirectory of the GHC gitlab root, I ran an ad-hoc rule with this result:From this error message, I can't tell if there's a problem with my rule, a problem with the GHC sources, or a problem with
retrie
. For starters, it would be useful to know the source location at which the offending#-}
was observed.