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.
Showing
- compiler/basicTypes/ConLike.hs 4 additions, 3 deletionscompiler/basicTypes/ConLike.hs
- compiler/basicTypes/ConLike.hs-boot 2 additions, 10 deletionscompiler/basicTypes/ConLike.hs-boot
- compiler/basicTypes/IdInfo.hs 1 addition, 1 deletioncompiler/basicTypes/IdInfo.hs
- compiler/basicTypes/PatSyn.hs 3 additions, 2 deletionscompiler/basicTypes/PatSyn.hs
- compiler/basicTypes/PatSyn.hs-boot 1 addition, 16 deletionscompiler/basicTypes/PatSyn.hs-boot
- compiler/basicTypes/Var.hs 3 additions, 3 deletionscompiler/basicTypes/Var.hs
- compiler/hsSyn/HsExpr.hs-boot 0 additions, 6 deletionscompiler/hsSyn/HsExpr.hs-boot
- compiler/hsSyn/HsPat.hs-boot 0 additions, 2 deletionscompiler/hsSyn/HsPat.hs-boot
- compiler/main/InteractiveEval.hs 4 additions, 2 deletionscompiler/main/InteractiveEval.hs
- compiler/types/Class.hs 2 additions, 2 deletionscompiler/types/Class.hs
- compiler/types/CoAxiom.hs 4 additions, 3 deletionscompiler/types/CoAxiom.hs
- compiler/types/TyCoRep.hs 2 additions, 3 deletionscompiler/types/TyCoRep.hs
- compiler/types/TyCoRep.hs-boot 7 additions, 4 deletionscompiler/types/TyCoRep.hs-boot
- compiler/types/TyCon.hs 3 additions, 3 deletionscompiler/types/TyCon.hs
Loading
Please register or sign in to comment