Allow :info for (~) in GHCi
`(~)` is not an identifier according to GHC's parser, which is why GHCi's `:info` command wouldn't work on it. To rectify this, we apply the same fix that was put in place for `(->)`: add `(~)` to GHC's `identifier` parser production. Test Plan: make test TEST=T10059 Reviewers: bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie, mpickering, carter GHC Trac Issues: #10059 Differential Revision: https://phabricator.haskell.org/D4877
Showing
- compiler/parser/Parser.y 3 additions, 1 deletioncompiler/parser/Parser.y
- testsuite/tests/ghci/scripts/T10059.script 5 additions, 0 deletionstestsuite/tests/ghci/scripts/T10059.script
- testsuite/tests/ghci/scripts/T10059.stdout 9 additions, 0 deletionstestsuite/tests/ghci/scripts/T10059.stdout
- testsuite/tests/ghci/scripts/all.T 1 addition, 0 deletionstestsuite/tests/ghci/scripts/all.T
testsuite/tests/ghci/scripts/T10059.script
0 → 100644
testsuite/tests/ghci/scripts/T10059.stdout
0 → 100644
Please register or sign in to comment