X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fcompiler%2Ftypecheck%2FTcTyDecls.lhs;fp=ghc%2Fcompiler%2Ftypecheck%2FTcTyDecls.lhs;h=4ce5fed3f3987e2f0d5869e08fb31cdba2e8cf43;hb=ac10f8408520a30e8437496d320b8b86afda2e8f;hp=7e390b4656320d69a8716e214880bdec9d1de745;hpb=479cc24837aa2c14c3bbed323bb640a5c53a2522;p=ghc-hetmet.git diff --git a/ghc/compiler/typecheck/TcTyDecls.lhs b/ghc/compiler/typecheck/TcTyDecls.lhs index 7e390b4..4ce5fed 100644 --- a/ghc/compiler/typecheck/TcTyDecls.lhs +++ b/ghc/compiler/typecheck/TcTyDecls.lhs @@ -25,7 +25,7 @@ import RnHsSyn ( extractHsTyNames ) import Type ( predTypeRep, tcView ) import HscTypes ( TyThing(..), ModDetails(..) ) import TyCon ( TyCon, ArgVrcs, tyConArity, tyConDataCons, tyConTyVars, - getSynTyConDefn, isSynTyCon, isAlgTyCon, + synTyConDefn, isSynTyCon, isAlgTyCon, tyConName, isNewTyCon, isProductTyCon, tyConArgVrcs, newTyConRhs ) import Class ( classTyCon ) import DataCon ( dataConOrigArgTys ) @@ -392,7 +392,7 @@ calcTyConArgVrcs tyclss argtys = concatMap dataConOrigArgTys data_cons -- Rep? or Orig? tcaoIter oi tc | isSynTyCon tc - = let (tyvs,ty) = getSynTyConDefn tc + = let (tyvs,ty) = synTyConDefn tc -- we use the already-computed result for tycons not in this SCC in map (\v -> vrcInTy (lookup oi) v ty) tyvs