projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
060518b
)
[project @ 1999-03-29 11:33:29 by sof]
author
sof
<unknown>
Mon, 29 Mar 1999 11:33:29 +0000
(11:33 +0000)
committer
sof
<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
patch
|
blob
|
history
diff --git
a/ghc/compiler/deSugar/DsExpr.lhs
b/ghc/compiler/deSugar/DsExpr.lhs
index
de10fcd
..
698b48a
100644
(file)
--- 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)] )