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

GHC ghc-devs at haskell.org
Fri Sep 28 00:53:30 UTC 2018


#12178: Allow inline pragmas on pattern synonyms
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  high              |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
                                     |  PatternSynonyms, 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 chessai):

 Why would a pattern synonym not get inlined by default, always? Pattern
 Synonyms AFAIK don't perform any computation; only computation that may
 occur within a Pattern Synonym would be within ViewPatterns, but inlining
 any function inside of the ViewPattern shouldn't matter to just the issue
 of inlining the Pattern Synonym. Please correct me if I am wrong or
 missing something.

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


More information about the ghc-tickets mailing list