Simon Peyton-Jones wrote: > Simon Frankau wrote: > | OPTIONS_GHC pragmas allow warnings to be enabled or disabled for a > | particular file, but there are some limitations: > | > | * It doesn't override command-line settings (being tacked on the > | start, rather than the end, of the options lists, I believe) > > I don't think this is right -- or if it is, it's a bug. The > OPTIONS_GHC stuff is supposed to override command-line opts
I'm afraid I read the documentation on this one. A quick test gives the impression that it's actually sticking the warning flags on the end, rather than the start (at least in 6.6). However, this is at odds with the documentation: http://www.haskell.org/ghc/docs/latest/html/users_guide/using-ghc.html#s ource-file-options . Perhaps an update of the documentation is due? :) Cheers, Simon Frankau. ------------------------------------------------------------------------ For important statutory and regulatory disclosures and more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. ------------------------------------------------------------------------ _______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
