From: sof Date: Mon, 29 Mar 1999 11:33:29 +0000 (+0000) Subject: [project @ 1999-03-29 11:33:29 by sof] X-Git-Tag: Approximately_9120_patches~6339 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d747accb24a9548285b458d124d04d257acf63f8;p=ghc-hetmet.git [project @ 1999-03-29 11:33:29 by sof] Fixed to allow desugaring of lit-lits with unboxed types. --- diff --git a/ghc/compiler/deSugar/DsExpr.lhs b/ghc/compiler/deSugar/DsExpr.lhs index de10fcd..698b48a 100644 --- a/ghc/compiler/deSugar/DsExpr.lhs +++ b/ghc/compiler/deSugar/DsExpr.lhs @@ -184,6 +184,9 @@ dsExpr (HsLitOut (HsString str) _) = returnDs (mkLit (NoRepStr str stringTy)) dsExpr (HsLitOut (HsLitLit str) ty) + | isUnLiftedType ty + = returnDs (mkLit (MachLitLit str ty)) + | otherwise = case (maybeBoxedPrimType ty) of Just (boxing_data_con, prim_ty) -> returnDs ( mkConApp boxing_data_con [mkLit (MachLitLit str prim_ty)] )