Skip to content

Make `identifier` parse unparenthesized `->` (#18060)

Josh Price requested to merge jdprice/ghc:T18060 into master

This MR adds a case for unparenthesized -> to the identifier parser (exported as parseIdentifier) to fix #18060 (closed).

parseIdentifier is also (transitively) used in other GHCi commands, the debugger, and haddock. But it makes sense that anything that accepts both + and (->) should also accept ->.

The test checks that :i ~ works as well because it used to have the same issue.

Merge request reports