#2956: Template Haskell: cannot splice sections
-----------------------------+----------------------------------------------
Reporter:  Deewiant          |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Template Haskell
 Version:  6.10.1            |       Severity:  minor           
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 {{{
 {-# LANGUAGE TemplateHaskell #-}

 works   =       1 + 1
 worksTH = $( [| 1 + 1 |] )

 breaks   =       (1+) 1
 breaksTH = $( [| (1+) 1 |] )
 }}}

 Trying to load the above gives:

 {{{
 arst.hs:7:14:
     A section must be enclosed in parentheses thus: (1 `GHC.Num.+`)
 }}}

 The line it's complaining about is `breaksTH`'s definition.

 Marking as minor because it's easy to work around by simply not using
 sections.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2956>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to