Warning about unrecognised pragma

I am getting messages: Board_representation.hs:407:0: Unrecognised pragma Board_representation.hs:442:0: Unrecognised pragma Board_representation.hs:458:0: Unrecognised pragma etc. (GHC 6.10.1) I looked into the documentation to see how to supress these warnings (prefereably for the particular pragma concerned), but I found (from 8.13): any pragma encountered with an unrecognised word is (silently) ignored. -- Colin Adams Preston Lancashire

"Colin" == Colin Paul Adams
writes:
Colin> I am getting messages: Board_representation.hs:407:0: Colin> Unrecognised pragma Colin> Board_representation.hs:442:0: Unrecognised pragma Colin> Board_representation.hs:458:0: Unrecognised pragma Colin> etc. Colin> (GHC 6.10.1) Colin> I looked into the documentation to see how to supress these Colin> warnings (prefereably for the particular pragma concerned), Colin> but I found (from 8.13): Colin> "any pragma encountered with an unrecognised word is (silently) ignored." I didn't see any reactions to this. Is it not a bug to emit the error message "Unrecognised pragma"? If it isn't, then is the documentation sentence quoted above a documentation bug? And how do I trun off the message - it is very incovenient, as I get an awful lot of them, and it makes it hard for me to see real error messages. -- Colin Adams Preston Lancashire

Colin Paul Adams wrote:
"Colin" == Colin Paul Adams
writes: Colin> I am getting messages: Board_representation.hs:407:0: Colin> Unrecognised pragma
Colin> Board_representation.hs:442:0: Unrecognised pragma
Colin> Board_representation.hs:458:0: Unrecognised pragma
Colin> etc.
Colin> (GHC 6.10.1)
Colin> I looked into the documentation to see how to supress these Colin> warnings (prefereably for the particular pragma concerned), Colin> but I found (from 8.13):
Colin> "any pragma encountered with an unrecognised word is (silently) ignored."
I didn't see any reactions to this.
Is it not a bug to emit the error message "Unrecognised pragma"?
If it isn't, then is the documentation sentence quoted above a documentation bug? And how do I trun off the message - it is very incovenient, as I get an awful lot of them, and it makes it hard for me to see real error messages.
There's a flag to turn off the warnings: -fno-warn-unrecognised-pragmas. Looks like we forgot to document it, though - thanks for highlighting it. http://hackage.haskell.org/trac/ghc/ticket/3031 Cheers, Simon

"Simon" == Simon Marlow
writes:
Simon> There's a flag to turn off the warnings: Simon> -fno-warn-unrecognised-pragmas. Looks like we forgot to Simon> document it, though - thanks for highlighting it. Simon> http://hackage.haskell.org/trac/ghc/ticket/3031 Great! That does the trick. Thanks. -- Colin Adams Preston Lancashire

Hi Colin, On Thu, Feb 05, 2009 at 11:27:05AM +0000, Colin Paul Adams wrote:
I am getting messages:
Board_representation.hs:407:0: Unrecognised pragma
Board_representation.hs:442:0: Unrecognised pragma
Board_representation.hs:458:0: Unrecognised pragma
I looked into the documentation to see how to supress these warnings (prefereably for the particular pragma concerned), but I found (from 8.13):
any pragma encountered with an unrecognised word is (silently) ignored.
I've fixed the documentation now, but can I ask what pragmas these are? If they're something common then we should teach GHC to ignore them. Thanks Ian
participants (3)
-
Colin Paul Adams
-
Ian Lynagh
-
Simon Marlow