Re: [Haskell-cafe] How to set a GHC option for a single module and a specific version of GHC?

2010-06-07 Thread Antoine Latter
On Sat, Jun 5, 2010 at 3:28 AM, Bernie Pope wrote: > Hi, > > I'm looking for a way to set a GHC compile option on a specific module > (not every module in the program) but only for a specific version of > GHC. Ideally within the confines of cabal, and in a portable way. > > GHC provides the OPTION

Re: [Haskell-cafe] How to set a GHC option for a single module and a specific version of GHC?

2010-06-07 Thread Duncan Coutts
On 5 June 2010 09:28, Bernie Pope wrote: > Hi, > > I'm looking for a way to set a GHC compile option on a specific module > (not every module in the program) but only for a specific version of > GHC. Ideally within the confines of cabal, and in a portable way. > > GHC provides the OPTIONS_GHC prag

[Haskell-cafe] How to set a GHC option for a single module and a specific version of GHC?

2010-06-07 Thread Bernie Pope
Hi, I'm looking for a way to set a GHC compile option on a specific module (not every module in the program) but only for a specific version of GHC. Ideally within the confines of cabal, and in a portable way. GHC provides the OPTIONS_GHC pragma, but it does not appear to provide a way for the pr