Refactoring only
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Dec 2015 14:55:35 +0000 (14:55 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Dec 2015 14:59:57 +0000 (14:59 +0000)
commit1af0d36be801a2039ba5c3c1546f06b6dad9b7a1
tree0b6cdabfff8af5e12d08081771c19f358fe6e70a
parentfcc7498f9b36c7c47d4d7aea8c277fe7a5699f51
Refactoring only

This moves code around to more sensible places.

- Construction for CoAxiom is localised in FamInstEnv

- orphNamesOfxx moves to CoreFVs

- roughMatchTcs, instanceCantMatch moves to Unify

- mkNewTypeCo moves from Coercion to FamInstEnv, and is
  renamed mkNewTypeCoAxiom, which makes more sense
17 files changed:
compiler/coreSyn/CoreFVs.hs
compiler/iface/BuildTyCl.hs
compiler/iface/IfaceSyn.hs
compiler/main/InteractiveEval.hs
compiler/prelude/TysWiredIn.hs
compiler/typecheck/Inst.hs
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcRnDriver.hs
compiler/typecheck/TcTyClsDecls.hs
compiler/typecheck/TcType.hs
compiler/types/CoAxiom.hs
compiler/types/Coercion.hs
compiler/types/FamInstEnv.hs
compiler/types/InstEnv.hs
compiler/types/TyCoRep.hs
compiler/types/Type.hs
compiler/types/Unify.hs