Skip to content
Snippets Groups Projects
Commit d747accb authored by sof's avatar sof
Browse files

[project @ 1999-03-29 11:33:29 by sof]

Fixed to allow desugaring of lit-lits with unboxed types.
parent 060518b8
No related merge requests found
......@@ -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)] )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment