[GHC] #10703: -fth-dec-file can't handle lambdas

GHC ghc-devs at haskell.org
Thu Jul 30 23:29:47 UTC 2015


#10703: -fth-dec-file can't handle lambdas
-------------------------------------+-------------------------------------
        Reporter:  Fabian            |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Template Haskell  |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #10701            |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by thomie):

 Great. To summarize, the output of `ghc -ddump-splices Test10702.hs` is:
 {{{
 instance Read Name where
      readsPrec x = \ k_a46F v_a46G -> undefined "test" "test2"
 }}}

 And it should be:
 {{{
 instance Read Name where
      readsPrec x = (\ k_a46F v_a46G -> undefined) "test" "test2"
 }}}

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


More information about the ghc-tickets mailing list