Support pattern synonyms in GHCi (fixes #9900)
authorDr. ERDI Gergo <gergo@erdi.hu>
Sun, 28 Dec 2014 03:51:00 +0000 (11:51 +0800)
committerDr. ERDI Gergo <gergo@erdi.hu>
Sun, 28 Dec 2014 11:37:33 +0000 (19:37 +0800)
commit0cc0cc8688ddb53db65a73d7d562e9564cfad22b
tree37f3a2b768a1190d518a3141690987dedb6eb710
parent6c86635df2b0c02a1cff8c2ace7f114c1be699fc
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`.
compiler/deSugar/Desugar.hs
compiler/main/HscMain.hs
compiler/main/HscTypes.hs
ghc/InteractiveUI.hs
testsuite/tests/patsyn/should_run/all.T
testsuite/tests/patsyn/should_run/ghci.script [new file with mode: 0644]
testsuite/tests/patsyn/should_run/ghci.stderr [new file with mode: 0644]
testsuite/tests/patsyn/should_run/ghci.stdout [new file with mode: 0644]