#7129: LINE pragma disables automatic tickish annotations
------------------------------+---------------------------------------------
 Reporter:  scpmw             |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.5               |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  Other             |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 If a `{-# LINE #-}` pragma is used in the code, this prevents the code in
 question to be considered for annotation in the desugaring phase. So, say,
 passing `-auto-all` on the command line would have no effect on these
 lines.

 This is probably a relic from HPC, which because of the way Mix files are
 written can't handle annotations referring to a different source file.
 Cost centres, on the other hand, have no reason to make this sort of
 restriction.

 The proposed patch defines a `tickSameFileOnly` flag that can be set as
 needed.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7129>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to