X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fstranal%2FWwLib.lhs;h=19f918f9e191afad9a60709d33cfd409f9fa965b;hb=579bc757533c8c9e5beabe5b21daddd922c1af75;hp=ec8f6227deee1211ee2652fcb2d48250d8adf6af;hpb=bc4cb1faefbe99fea6f207dfa4d754c2cc2865c1;p=ghc-hetmet.git diff --git a/compiler/stranal/WwLib.lhs b/compiler/stranal/WwLib.lhs index ec8f622..19f918f 100644 --- a/compiler/stranal/WwLib.lhs +++ b/compiler/stranal/WwLib.lhs @@ -28,6 +28,7 @@ import UniqSupply import Unique import Util ( zipWithEqual, notNull ) import Outputable +import FastString import List ( zipWith4 ) \end{code} @@ -122,7 +123,7 @@ mkWwBodies :: Type -- Type of original function mkWwBodies fun_ty demands res_info one_shots = do (wrap_args, wrap_fn_args, work_fn_args, res_ty) <- mkWWargs fun_ty demands one_shots' (work_args, wrap_fn_str, work_fn_str) <- mkWWstr wrap_args - let (work_lam_args, work_call_args) = do mkWorkerArgs work_args res_ty + let (work_lam_args, work_call_args) = mkWorkerArgs work_args res_ty -- Don't do CPR if the worker doesn't have any value arguments -- Then the worker is just a constant, so we don't want to unbox it. (wrap_fn_cpr, work_fn_cpr, _cpr_res_ty) @@ -277,7 +278,7 @@ applyToVars vars fn = mkVarApps fn vars mk_wrap_arg :: Unique -> Type -> NewDemand.Demand -> Bool -> Id mk_wrap_arg uniq ty dmd one_shot - = set_one_shot one_shot (setIdNewDemandInfo (mkSysLocal FSLIT("w") uniq ty) dmd) + = set_one_shot one_shot (setIdNewDemandInfo (mkSysLocal (fsLit "w") uniq ty) dmd) where set_one_shot True id = setOneShotLambda id set_one_shot False id = id @@ -501,5 +502,5 @@ sanitiseCaseBndr :: Id -> Id sanitiseCaseBndr id = id `setIdInfo` vanillaIdInfo mk_ww_local :: Unique -> Type -> Id -mk_ww_local uniq ty = mkSysLocal FSLIT("ww") uniq ty +mk_ww_local uniq ty = mkSysLocal (fsLit "ww") uniq ty \end{code}