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

GHC ghc-devs at haskell.org
Wed Nov 2 14:58:00 UTC 2016


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

 * status:  new => closed
 * resolution:   => duplicate
 * related:   => #12584
 * milestone:   => 8.0.2


Comment:

 This was fixed by the solution for #12584. This fix has been applied to
 GHC 8.0.2 and HEAD. For reference, with GHC HEAD the reported error
 message for the original code is now:

 {{{
 GHCi, version 8.1.20161023: http://www.haskell.org/ghc/  :? for help
 Loaded GHCi configuration from /home/rgscott/.ghci
 [1 of 1] Compiling Main             ( Bug.hs, interpreted )

 Bug.hs:8:26: error:
     Pattern syntax in expression context:
         \ x -> case x of { "type_" -> "type" (...) } -> x
 }}}

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


More information about the ghc-tickets mailing list