[GHC] #13376: GHC fails to specialize a pair of polymorphic INLINABLE functions

GHC ghc-devs at haskell.org
Sun Mar 5 05:05:53 UTC 2017


#13376: GHC fails to specialize a pair of polymorphic INLINABLE functions
-------------------------------------+-------------------------------------
        Reporter:  jberryman         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  Inlining
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #8668             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by jberryman):

 Also adding (per "SPECIALIZE for imported functions" from the user guide)
 in Main the following:

 {{{#!hs
 {-# SPECIALIZE hash :: Foo -> Int -> Foo #-}
 }}}

 ...results in a warning I don't really understand:

 {{{
 Ignoring useless SPECIALISE pragma for class method selector ‘hash’
 }}}

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


More information about the ghc-tickets mailing list