Refactor computing dependent type vars
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 18 Apr 2016 14:01:13 +0000 (15:01 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 19 Apr 2016 07:38:47 +0000 (08:38 +0100)
commit17eb2419c42c70d7436b6b8cff0cef705353bb4e
treee23a36cdbf1fa1ce1925a47be8988b8edffc1074
parentd59939a4efeaca297cd2ad70a86ad589d1872003
Refactor computing dependent type vars

There should be no change in behaviour here

* Move splitDepVarsOfType(s) from Type to TcType

* Define data type TcType.TcDepVars, document what it means,
  and use it where appropriate, notably in splitDepVarsOfType(s)

* Use it in TcMType.quantifyTyVars and friends
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcMType.hs
compiler/typecheck/TcPatSyn.hs
compiler/typecheck/TcSimplify.hs
compiler/typecheck/TcType.hs
compiler/types/Type.hs