[commit: ghc] master: Reduce use of instances in hs-boot files (81aa3d1)

git at git.haskell.org git at git.haskell.org
Wed Apr 20 13:26:22 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/81aa3d1cd0703b4437eb09d761b0a868c72ddc0e/ghc

>---------------------------------------------------------------

commit 81aa3d1cd0703b4437eb09d761b0a868c72ddc0e
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Apr 20 12:26:03 2016 +0100

    Reduce use of instances in hs-boot files
    
    Several things here
    
    * GHC no longer allows user-written Typeable instances,
      so remove them from hs-boot files.
    
    * Generally, reduce the use of instances in hs-boot files. They are
      hard to track.  Mainly this involves using pprType, pprKind etc
      instead of just ppr.  There were a lot of instances in hs-boot
      files that weren't needed at all.
    
    * Take TyThing out of Eq; it was used in exactly one place (in
      InteractiveEval), and equality is too big a hammer for that.


>---------------------------------------------------------------

81aa3d1cd0703b4437eb09d761b0a868c72ddc0e
 compiler/basicTypes/ConLike.hs      |  7 ++++---
 compiler/basicTypes/ConLike.hs-boot | 12 ++----------
 compiler/basicTypes/IdInfo.hs       |  2 +-
 compiler/basicTypes/PatSyn.hs       |  5 +++--
 compiler/basicTypes/PatSyn.hs-boot  | 17 +----------------
 compiler/basicTypes/Var.hs          |  6 +++---
 compiler/hsSyn/HsExpr.hs-boot       |  6 ------
 compiler/hsSyn/HsPat.hs-boot        |  2 --
 compiler/main/InteractiveEval.hs    |  6 ++++--
 compiler/types/Class.hs             |  4 ++--
 compiler/types/CoAxiom.hs           |  7 ++++---
 compiler/types/TyCoRep.hs           |  5 ++---
 compiler/types/TyCoRep.hs-boot      | 11 +++++++----
 compiler/types/TyCon.hs             |  6 +++---
 14 files changed, 36 insertions(+), 60 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 81aa3d1cd0703b4437eb09d761b0a868c72ddc0e


More information about the ghc-commits mailing list