[GHC] #11184: panic tcMonoExpr _ with bad indentation in TH code

GHC ghc-devs at haskell.org
Wed Mar 30 07:27:25 UTC 2016


#11184: panic tcMonoExpr _ with bad indentation in TH code
-------------------------------------+-------------------------------------
        Reporter:  TeroLaitinen      |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  7.10.2
      Resolution:                    |             Keywords:
                                     |  TemplateHaskell
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by erikd):

 The panic occurs for the `EWildPat` constructor and the comments for that
 constructor (and some others) say (in the file compiler/hsSyn/HsExpr.hs):

 {{{
   -- These constructors only appear temporarily in the parser.
   -- The renamer translates them into the Right Thing.
 }}}

 so the problem isn't really that the `EWildPat` constructor isn't handled,
 but rather that an error should have been reported when the renamer failed
 to translate it into the Right Thing.

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


More information about the ghc-tickets mailing list