[commit: ghc] master: Update old comment InlinePragma (0c37aef)

git at git.haskell.org git at git.haskell.org
Wed Aug 3 10:38:26 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/0c37aef24c7727b2ee6ade41a7a2e2c7b9d7af36/ghc

>---------------------------------------------------------------

commit 0c37aef24c7727b2ee6ade41a7a2e2c7b9d7af36
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Wed Aug 3 11:37:05 2016 +0100

    Update old comment InlinePragma


>---------------------------------------------------------------

0c37aef24c7727b2ee6ade41a7a2e2c7b9d7af36
 compiler/basicTypes/BasicTypes.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler/basicTypes/BasicTypes.hs b/compiler/basicTypes/BasicTypes.hs
index 9711edb..92a1740 100644
--- a/compiler/basicTypes/BasicTypes.hs
+++ b/compiler/basicTypes/BasicTypes.hs
@@ -971,14 +971,14 @@ This data type mirrors what you can write in an INLINE or NOINLINE pragma in
 the source program.
 
 If you write nothing at all, you get defaultInlinePragma:
-   inl_inline = False
+   inl_inline = EmptyInlineSpec
    inl_act    = AlwaysActive
    inl_rule   = FunLike
 
 It's not possible to get that combination by *writing* something, so
 if an Id has defaultInlinePragma it means the user didn't specify anything.
 
-If inl_inline = True, then the Id should have an InlineRule unfolding.
+If inl_inline = Inline or Inlineable, then the Id should have an InlineRule unfolding.
 
 Note [CONLIKE pragma]
 ~~~~~~~~~~~~~~~~~~~~~



More information about the ghc-commits mailing list