forgetting SCC

Ian Lynagh igloo at
Sat Feb 6 15:24:07 EST 2010

On Sun, Jan 31, 2010 at 10:09:42PM +0300, Serge D. Mechveliani wrote:
> I have a suggestion: 
> is it better for GHC to report an error on the source of kind
>                                                          {-# "foo" #-}  
> (entered by a typo instead of  {-# SCC "foo" #-}) ?
> Currently, GHC makes the program under (-prof) in which, the "foo" center 
> occurs skipped. This misleads the user: 
> "foo  is not in the profiling head, so it takes zero cost".

6.12.1 will warn:

    q.hs:3:0: Unrecognised pragma

by default.


More information about the Glasgow-haskell-users mailing list