Kill Type pretty-printer
Here we consolidate the pretty-printing logic for types in IfaceType. We need IfaceType regardless and the printer for Type can be implemented in terms of that for IfaceType. See #11660. Note that this is very much a work-in-progress. Namely I still have yet to ponder how to ease the hs-boot file situation, still need to rip out more dead code, need to move some of the special cases for, e.g., `*` to the IfaceType printer, and need to get it to validate. That being said, it comes close to validating as-is. Test Plan: Validate Reviewers: goldfire, austin Subscribers: goldfire, thomie, simonpj Differential Revision: https://phabricator.haskell.org/D2528 GHC Trac Issues: #11660
Showing
- compiler/basicTypes/BasicTypes.hs 44 additions, 0 deletionscompiler/basicTypes/BasicTypes.hs
- compiler/coreSyn/CoreLint.hs 1 addition, 1 deletioncompiler/coreSyn/CoreLint.hs
- compiler/coreSyn/PprCore.hs 1 addition, 1 deletioncompiler/coreSyn/PprCore.hs
- compiler/ghc.cabal.in 1 addition, 0 deletionscompiler/ghc.cabal.in
- compiler/ghc.mk 1 addition, 0 deletionscompiler/ghc.mk
- compiler/iface/IfaceSyn.hs 6 additions, 3 deletionscompiler/iface/IfaceSyn.hs
- compiler/iface/IfaceType.hs 467 additions, 264 deletionscompiler/iface/IfaceType.hs
- compiler/iface/IfaceType.hs-boot 36 additions, 0 deletionscompiler/iface/IfaceType.hs-boot
- compiler/iface/MkIface.hs 1 addition, 222 deletionscompiler/iface/MkIface.hs
- compiler/iface/TcIface.hs 10 additions, 8 deletionscompiler/iface/TcIface.hs
- compiler/iface/ToIface.hs 497 additions, 0 deletionscompiler/iface/ToIface.hs
- compiler/iface/ToIface.hs-boot 15 additions, 0 deletionscompiler/iface/ToIface.hs-boot
- compiler/main/GHC.hs 1 addition, 1 deletioncompiler/main/GHC.hs
- compiler/prelude/TysWiredIn.hs 5 additions, 2 deletionscompiler/prelude/TysWiredIn.hs
- compiler/prelude/TysWiredIn.hs-boot 1 addition, 1 deletioncompiler/prelude/TysWiredIn.hs-boot
- compiler/typecheck/TcDeriv.hs 3 additions, 2 deletionscompiler/typecheck/TcDeriv.hs
- compiler/typecheck/TcDerivInfer.hs 1 addition, 1 deletioncompiler/typecheck/TcDerivInfer.hs
- compiler/typecheck/TcErrors.hs 1 addition, 1 deletioncompiler/typecheck/TcErrors.hs
- compiler/typecheck/TcExpr.hs 1 addition, 1 deletioncompiler/typecheck/TcExpr.hs
- compiler/typecheck/TcHsType.hs 1 addition, 1 deletioncompiler/typecheck/TcHsType.hs
Loading
Please register or sign in to comment