[commit: ghc] wip/D5097: Add a -fprint-axiom-incomps option (#15546) (257f915)
git at git.haskell.org
git at git.haskell.org
Mon Jan 21 01:53:48 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/D5097
Link : http://ghc.haskell.org/trac/ghc/changeset/257f9155e6be58b5a7f7660dc625cdfa57749e6d/ghc
>---------------------------------------------------------------
commit 257f9155e6be58b5a7f7660dc625cdfa57749e6d
Author: mniip <mniip at mniip.com>
Date: Sun Jan 20 20:48:13 2019 -0500
Add a -fprint-axiom-incomps option (#15546)
Supply branch incomps when building an IfaceClosedSynFamilyTyCon
`pprTyThing` now has access to incomps. This also causes them to be
written out to .hi files, but that doesn't pose an issue other than a
more faithful bijection between `tyThingToIfaceDecl` and `tcIfaceDecl`.
The machinery for displaying axiom incomps was already present but not
in use. Since this is now a thing that pops up in ghci's :info the
format was modified to look like a haskell comment.
Documentation and a test for the new feature included.
Test Plan: T15546
Reviewers: simonpj, bgamari, goldfire
Reviewed By: simonpj
Subscribers: rwbarton, carter
GHC Trac Issues: #15546
Differential Revision: https://phabricator.haskell.org/D5097
>---------------------------------------------------------------
257f9155e6be58b5a7f7660dc625cdfa57749e6d
compiler/iface/IfaceSyn.hs | 34 ++++++++++++++++++++---
compiler/iface/MkIface.hs | 43 +++++++++++++++---------------
compiler/main/DynFlags.hs | 2 ++
docs/users_guide/glasgow_exts.rst | 3 +++
docs/users_guide/using.rst | 31 +++++++++++++++++++++
libraries/Cabal | 2 +-
libraries/binary | 2 +-
libraries/bytestring | 2 +-
libraries/containers | 2 +-
libraries/deepseq | 2 +-
libraries/directory | 2 +-
libraries/hpc | 2 +-
libraries/stm | 2 +-
libraries/text | 2 +-
libraries/time | 2 +-
libraries/unix | 2 +-
nofib | 2 +-
testsuite/tests/ghci/scripts/T15546.script | 5 ++++
testsuite/tests/ghci/scripts/T15546.stdout | 11 ++++++++
testsuite/tests/ghci/scripts/all.T | 1 +
utils/haddock | 2 +-
utils/hsc2hs | 2 +-
22 files changed, 119 insertions(+), 39 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 257f9155e6be58b5a7f7660dc625cdfa57749e6d
More information about the ghc-commits
mailing list