Reduce use of instances in hs-boot files
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 20 Apr 2016 11:26:03 +0000 (12:26 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 20 Apr 2016 11:58:41 +0000 (12:58 +0100)
commit81aa3d1cd0703b4437eb09d761b0a868c72ddc0e
treec0804ab2c2e2de1b2c4c00b9d93bfb6888529dea
parent7f71dbe3a17d6914f874488ef76d80c946db370c
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.
14 files changed:
compiler/basicTypes/ConLike.hs
compiler/basicTypes/ConLike.hs-boot
compiler/basicTypes/IdInfo.hs
compiler/basicTypes/PatSyn.hs
compiler/basicTypes/PatSyn.hs-boot
compiler/basicTypes/Var.hs
compiler/hsSyn/HsExpr.hs-boot
compiler/hsSyn/HsPat.hs-boot
compiler/main/InteractiveEval.hs
compiler/types/Class.hs
compiler/types/CoAxiom.hs
compiler/types/TyCoRep.hs
compiler/types/TyCoRep.hs-boot
compiler/types/TyCon.hs