[GHC] #12178: Allow inline pragmas on pattern synonyms

GHC ghc-devs at haskell.org
Wed Aug 3 15:32:45 UTC 2016


#12178: Allow inline pragmas on pattern synonyms
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  high              |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
                                     |  PatternSynonyms
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * priority:  normal => high
 * cc: bgamari (added)


Comment:

 Bumping the importance of this since you really should be able to use
 pattern synonyms in a manner without compromising performance.

 I agree that a simple `INLINE P` pragma should inline both the matcher and
 the builder. Indeed we could expose `INLINE_MATCHER` and `INLINE_BUILDER`
 variants as well, although I am doubtful that they would pull their
 weight.

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


More information about the ghc-tickets mailing list