[project @ 1999-03-29 11:33:29 by sof]
authorsof <unknown>
Mon, 29 Mar 1999 11:33:29 +0000 (11:33 +0000)
committersof <unknown>
Mon, 29 Mar 1999 11:33:29 +0000 (11:33 +0000)
Fixed to allow desugaring of lit-lits with unboxed types.

ghc/compiler/deSugar/DsExpr.lhs

index de10fcd..698b48a 100644 (file)
@@ -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)] )