[GHC] #12027: ghc 8.0rc4 treats INLINE pragmas for methods with default (implicit) definitions as errors

GHC ghc-devs at haskell.org
Mon May 9 07:53:51 UTC 2016


#12027: ghc 8.0rc4 treats INLINE pragmas for methods with default (implicit)
definitions as errors
-------------------------------------+-------------------------------------
        Reporter:  carter            |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  high              |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:  invalid           |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I suppose it's conceivable that in some instances you want to inline the
 default method, and not in others.  So we could make it so that a pragma
 for the (invisible) default-method binding in the instance overrides the
 one from the class decl.

 Possible, if there are compelling use-cases.  But it's one more thing to
 specify, explain, implement, and maintain.

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


More information about the ghc-tickets mailing list