X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FdeSugar%2FDsUtils.lhs;fp=compiler%2FdeSugar%2FDsUtils.lhs;h=24579df162331ba216c797b4ca7161d4be379f27;hp=62328bc7a1ab2dfc799e6449e221bde4c47f151b;hb=4179e02ec7ec7aea79273cdcc166123c2ddd2063;hpb=539b572921068dc02cec4c5a71e8516958949336 diff --git a/compiler/deSugar/DsUtils.lhs b/compiler/deSugar/DsUtils.lhs index 62328bc..24579df 100644 --- a/compiler/deSugar/DsUtils.lhs +++ b/compiler/deSugar/DsUtils.lhs @@ -46,6 +46,7 @@ import {-# SOURCE #-} DsExpr( dsExpr ) import HsSyn import TcHsSyn +import TcType( tcSplitTyConApp ) import CoreSyn import DsMonad @@ -287,7 +288,8 @@ mkCoAlgCaseMatchResult var ty match_alts (con1, arg_ids1, match_result1) = ASSERT( notNull match_alts ) head match_alts arg_id1 = ASSERT( notNull arg_ids1 ) head arg_ids1 var_ty = idType var - (tc, ty_args) = splitNewTyConApp var_ty + (tc, ty_args) = tcSplitTyConApp var_ty -- Don't look through newtypes + -- (not that splitTyConApp does, these days) newtype_rhs = unwrapNewTypeBody tc ty_args (Var var) -- Stuff for data types