
I am sorry, indeed, ghc-6.12.1 warns of Unrecognised pragma on {-# "foo" #-}. I have just missed this warning. The next question is: why it is a warning and not an error break? ----------------- Serge Mechveliani mechvel@botik.ru On Sun, Feb 07, 2010 at 10:56:53AM +0000, Ian Lynagh wrote:
On Sun, Feb 07, 2010 at 11:39:31AM +0300, Serge D. Mechveliani wrote:
On Sat, Feb 06, 2010 at 08:24:07PM +0000, Ian Lynagh wrote:
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.
May be, you mean the version next to 6.12.1 ? Because this my report is exactly on 6.12.1.
No, in 6.12.1:
$ cat Q.hs
module Q where
{-# "foo" #-}
$ ghci Q.hs GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package ffi-1.0 ... linking ... done. [1 of 1] Compiling Q ( Q.hs, interpreted )
Q.hs:4:0: Unrecognised pragma Ok, modules loaded: Q. *Q>
Thanks Ian