Refactoring around TyCon.isSynTyCon
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 15 May 2014 15:07:04 +0000 (16:07 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 15 May 2014 15:07:26 +0000 (16:07 +0100)
commit022f8750edf6f413fba31293435dcc62600eab77
tree177cd58c79a3c9d930da98cc734d20dc82857d70
parent9a58cac8c964ecd475bd8a7bbffc435f1ed130b2
Refactoring around TyCon.isSynTyCon

* Document isSynTyCon better
* Add isTypeSyonymTyCon for regular H98 type synonyms
* Use isTypeSynonymTyCon rather than isSynTyCon where
  the former is really intended

All arose as part of a bug I introduced when fixing Trac #9102,
thinking that isSynTyCon meant H98 type syononyms.
compiler/main/PprTyThing.hs
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcInstDcls.lhs
compiler/typecheck/TcTyClsDecls.lhs
compiler/typecheck/TcTyDecls.lhs
compiler/typecheck/TcType.lhs
compiler/typecheck/TcValidity.lhs
compiler/types/TyCon.lhs