[GHC] #12613: Fix spelling of INLIN(E)ABLE in comments

GHC ghc-devs at haskell.org
Fri Sep 23 23:18:43 UTC 2016


#12613: Fix spelling of INLIN(E)ABLE in comments
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:
            Type:  task              |               Status:  new
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 JFTR: It’s not only in comments; it is used as pragmas in many files:
 {{{
 libraries/base/Control/Monad.hs:{-# INLINEABLE foldM #-}
 libraries/base/Control/Monad.hs:{-# INLINEABLE foldM_ #-}
 libraries/base/Control/Monad.hs:{-# INLINEABLE replicateM #-}
 libraries/base/Control/Monad.hs:{-# INLINEABLE replicateM_ #-}
 libraries/base/Control/Monad.hs:{-# INLINEABLE unless #-}
 libraries/base/Control/Monad.hs:{-# INLINEABLE mfilter #-}
 libraries/base/Data/Bits.hs:{-# INLINEABLE toIntegralSized #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE liftA #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE liftA2 #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE liftA3 #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE when #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE liftM #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE liftM2 #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE liftM3 #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE liftM4 #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE liftM5 #-}
 libraries/base/GHC/Base.hs:{-# INLINEABLE ap #-}
 libraries/base/GHC/List.hs:{-# INLINEABLE maximum #-}
 libraries/base/GHC/List.hs:{-# INLINEABLE minimum #-}
 libraries/base/GHC/Real.hs:{-# INLINEABLE even #-}
 libraries/base/GHC/Real.hs:{-# INLINEABLE odd  #-}
 }}}
 Are all these pragmas broken? No: Both are accepted by the lexer:
 {{{
            ("inlinable", strtoken (\s -> (ITinline_prag s Inlinable
 FunLike))),
            ("inlineable", strtoken (\s -> (ITinline_prag s Inlinable
 FunLike))),
                                           -- Spelling variant
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12613#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list