From d747accb24a9548285b458d124d04d257acf63f8 Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Mon, 29 Mar 1999 11:33:29 +0000
Subject: [PATCH] [project @ 1999-03-29 11:33:29 by sof] Fixed to allow
 desugaring of lit-lits with unboxed types.

---
 ghc/compiler/deSugar/DsExpr.lhs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ghc/compiler/deSugar/DsExpr.lhs b/ghc/compiler/deSugar/DsExpr.lhs
index de10fcd5ca3f..698b48ad314e 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)] )
-- 
GitLab