Support pattern synonyms in GHCi (fixes #9900)
This involves recognizing lines starting with `"pattern "` as declarations, keeping non-exported pattern synonyms in `deSugar`, and including pattern synonyms in the result of `hscDeclsWithLocation`. (cherry picked from commit 0cc0cc86)
Showing
- compiler/deSugar/Desugar.hs 1 addition, 2 deletionscompiler/deSugar/Desugar.hs
- compiler/main/HscMain.hs 4 additions, 2 deletionscompiler/main/HscMain.hs
- compiler/main/HscTypes.hs 3 additions, 2 deletionscompiler/main/HscTypes.hs
- ghc/InteractiveUI.hs 1 addition, 0 deletionsghc/InteractiveUI.hs
- testsuite/tests/patsyn/should_run/all.T 5 additions, 0 deletionstestsuite/tests/patsyn/should_run/all.T
- testsuite/tests/patsyn/should_run/ghci.script 8 additions, 0 deletionstestsuite/tests/patsyn/should_run/ghci.script
- testsuite/tests/patsyn/should_run/ghci.stderr 2 additions, 0 deletionstestsuite/tests/patsyn/should_run/ghci.stderr
- testsuite/tests/patsyn/should_run/ghci.stdout 3 additions, 0 deletionstestsuite/tests/patsyn/should_run/ghci.stdout
Loading
Please register or sign in to comment