[GHC] #10600: -fwarn-incomplete-patterns doesn't work with -fno-code

GHC ghc-devs at haskell.org
Sun May 7 16:46:05 UTC 2017


#10600: -fwarn-incomplete-patterns doesn't work with -fno-code
-------------------------------------+-------------------------------------
        Reporter:  akio              |                Owner:  ezyang
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.1
       Component:  Compiler          |              Version:  7.10.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  warning at compile-time            |            Test Case:  driver/T8101b
      Blocked By:                    |             Blocking:
 Related Tickets:  #8101             |  Differential Rev(s):  Phab:D1278
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 > * Top-level bindings for unlifted types aren't allowed:
 > * Top-level strict pattern bindings aren't allowed:

 While these were never really "allowed", Richard Eisenberg did tighten the
 checks to ensure that they are caught between 8.0 and 8.2.

 >  Let's always desugar with -fno-code, except for Ghc.Prim?

 Sounds like a reasonable first approximation to me. Let me know if you get
 stuck.

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


More information about the ghc-tickets mailing list