[GHC] #15504: -XStrict doesn't prevent warnings from -Wunbanged-strict-patterns

GHC ghc-devs at haskell.org
Tue Aug 21 15:06:01 UTC 2018


#15504: -XStrict doesn't prevent warnings from -Wunbanged-strict-patterns
-------------------------------------+-------------------------------------
        Reporter:  ChaiTRex          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
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 simonpj):

 `-Wunbanged-strict-patterns` works on the code the user wrote, not the
 code after `-XStrict` has notionally munged it.  You could argue either
 way, I suppose, but my suggestion would just be to put the bang on.

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


More information about the ghc-tickets mailing list