X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FdeSugar%2FDsCCall.lhs;h=51a22bae19dfc0af377e008354b4e488a02eafcc;hb=8f762bf5c40f89022c1da71f7c10fdfc64099d5d;hp=4384e66f74b9b2558cc2773a1f12376fc00e8067;hpb=1b7a99e3e7f64c6f402e8aece32ba0b9a3703bfa;p=ghc-hetmet.git diff --git a/ghc/compiler/deSugar/DsCCall.lhs b/ghc/compiler/deSugar/DsCCall.lhs index 4384e66..51a22ba 100644 --- a/ghc/compiler/deSugar/DsCCall.lhs +++ b/ghc/compiler/deSugar/DsCCall.lhs @@ -41,7 +41,7 @@ import TysWiredIn ( unitDataConId, ) import Literal ( mkMachInt ) import CStrings ( CLabelString ) -import Unique ( Unique, hasKey, ioTyConKey ) +import PrelNames ( Unique, hasKey, ioTyConKey ) import VarSet ( varSetElems ) import Outputable \end{code} @@ -177,14 +177,12 @@ unboxArg arg = getSrcLocDs `thenDs` \ l -> pprPanic "unboxArg: " (ppr l <+> ppr arg_ty) where - arg_ty = exprType arg - arg_rep_ty = repType arg_ty - - maybe_product_type = splitProductType_maybe arg_ty - is_product_type = maybeToBool maybe_product_type - Just (tycon, _, data_con, data_con_arg_tys) = maybe_product_type - data_con_arity = dataConSourceArity data_con - (data_con_arg_ty1 : _) = data_con_arg_tys + arg_ty = exprType arg + maybe_product_type = splitProductType_maybe arg_ty + is_product_type = maybeToBool maybe_product_type + Just (_, _, data_con, data_con_arg_tys) = maybe_product_type + data_con_arity = dataConSourceArity data_con + (data_con_arg_ty1 : _) = data_con_arg_tys (_ : _ : data_con_arg_ty3 : _) = data_con_arg_tys maybe_arg3_tycon = splitTyConApp_maybe data_con_arg_ty3 @@ -299,8 +297,8 @@ resultWrapper result_ty | otherwise = pprPanic "resultWrapper" (ppr result_ty) where - maybe_product_type = splitProductType_maybe result_ty - is_product_type = maybeToBool maybe_product_type - Just (tycon, tycon_arg_tys, data_con, data_con_arg_tys) = maybe_product_type - data_con_arity = dataConSourceArity data_con + maybe_product_type = splitProductType_maybe result_ty + is_product_type = maybeToBool maybe_product_type + Just (_, tycon_arg_tys, data_con, data_con_arg_tys) = maybe_product_type + data_con_arity = dataConSourceArity data_con \end{code}