Skip to content

Commit

Permalink
Comments only
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpj@microsoft.com committed Mar 9, 2010
1 parent 0ccb37a commit 011680b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions compiler/basicTypes/BasicTypes.lhs
Expand Up @@ -673,8 +673,13 @@ defaultInlinePragma = InlinePragma { inl_act = AlwaysActive
alwaysInlinePragma = defaultInlinePragma { inl_inline = True }
neverInlinePragma = defaultInlinePragma { inl_act = NeverActive }
dfunInlinePragma = defaultInlinePragma { inl_rule = ConLike }
-- A DFun has an always-active inline activation so that
-- exprIsConApp_maybe can "see" its unfolding
-- (However, its actual Unfolding is a DFunUnfolding, which is
-- never inlined other than via exprIsConApp_maybe.)
dfunInlinePragma = defaultInlinePragma { inl_act = AlwaysActive
, inl_rule = ConLike }
isDefaultInlinePragma :: InlinePragma -> Bool
isDefaultInlinePragma (InlinePragma { inl_act = activation
Expand Down

0 comments on commit 011680b

Please sign in to comment.