From 034bc89085624f91ae984e745429c6c99363c99c Mon Sep 17 00:00:00 2001 From: simonpj Date: Thu, 9 Jul 1998 10:06:57 +0000 Subject: [PATCH] [project @ 1998-07-09 10:06:57 by simonpj] Put IMustBeINLINEd on constructors --- ghc/compiler/basicTypes/MkId.lhs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/basicTypes/MkId.lhs b/ghc/compiler/basicTypes/MkId.lhs index f9f7710..3f3deb0 100644 --- a/ghc/compiler/basicTypes/MkId.lhs +++ b/ghc/compiler/basicTypes/MkId.lhs @@ -177,8 +177,10 @@ Notice that dataConInfo :: Id -> IdInfo dataConInfo con_id - = setInlinePragInfo IWantToBeINLINEd $ - -- Always inline constructors if possible + = setInlinePragInfo IMustBeINLINEd $ + -- Always inline constructors; we don't create a binding for them + -- (well, at least not for dict constructors, since they are + -- always applied) setArityInfo (exactArity (length locals)) $ setUnfoldingInfo unfolding $ noIdInfo -- 1.7.10.4