X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftypecheck%2FTcIfaceSig.lhs;fp=ghc%2Fcompiler%2Ftypecheck%2FTcIfaceSig.lhs;h=ebfdb499be8b8048e68f0e0b9c5d68418aa9841e;hb=2129fa6fc4afd7f7b0c767f8c0c14b9ab5508ec2;hp=5295fec764f734372e3daabd66614cfa6ad124ce;hpb=ce42f19f8c840fbe89844471a0d850d310a94556;p=ghc-hetmet.git diff --git a/ghc/compiler/typecheck/TcIfaceSig.lhs b/ghc/compiler/typecheck/TcIfaceSig.lhs index 5295fec..ebfdb49 100644 --- a/ghc/compiler/typecheck/TcIfaceSig.lhs +++ b/ghc/compiler/typecheck/TcIfaceSig.lhs @@ -230,12 +230,6 @@ tcCoreExpr (UfVar name) tcCoreExpr (UfLit lit) = returnM (Lit lit) --- The dreaded lit-lits are also similar, except here the type --- is read in explicitly rather than being implicit -tcCoreExpr (UfLitLit lit ty) - = tcIfaceType ty `thenM` \ ty' -> - returnM (Lit (MachLitLit lit ty')) - tcCoreExpr (UfFCall cc ty) = tcIfaceType ty `thenM` \ ty' -> newUnique `thenM` \ u -> @@ -349,12 +343,6 @@ tcCoreAlt scrut_ty (UfLitAlt lit, names, rhs) tcCoreExpr rhs `thenM` \ rhs' -> returnM (LitAlt lit, [], rhs') -tcCoreAlt scrut_ty (UfLitLitAlt str ty, names, rhs) - = ASSERT( null names ) - tcCoreExpr rhs `thenM` \ rhs' -> - tcIfaceType ty `thenM` \ ty' -> - returnM (LitAlt (MachLitLit str ty'), [], rhs') - -- A case alternative is made quite a bit more complicated -- by the fact that we omit type annotations because we can -- work them out. True enough, but its not that easy!