[GHC] #10707: -fth-dec-file outputs invalid case clauses

GHC ghc-devs at haskell.org
Thu Jul 30 23:17:09 UTC 2015


#10707: -fth-dec-file outputs invalid case clauses
-------------------------------------+-------------------------------------
        Reporter:  Fabian            |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Template Haskell  |                 Version:  7.10.1
      Resolution:                    |                Keywords:  newcomer
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #10701            |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 I'm not sure what you mean by "invalid case clauses", but it seems to me
 that the error is that
 {{{
 case e of { ...alts... } foo
 }}}
 is not valid syntax for an application, it must be parenthesized like
 {{{
 (case e of { ...alts... }) foo
 }}}
 A problem with the case expression itself in its context, not the case
 clauses.

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


More information about the ghc-tickets mailing list