Contrary to the manual, -fcontext-stackN is a static flag, so you have to set it on 
the command line, I'm afraid.  I'll fix the manual.

Simon

| -----Original Message-----
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
| Anders H�ckersten
| Sent: 05 April 2004 13:43
| To: [EMAIL PROTECTED]
| Subject: [Haskell-cafe] Using -fcontext-stackXX in an OPTIONS pragma
| 
| Hi!
| I am currently trying to use GHC 6.2 together with the OPTIONS pragma.
| My program is generating files and needs to set the context stack
| differently for different files. I try to do this using the OPTIONS
| pragma, by having this line at the top of my files:
| {-# OPTIONS -fglasgow-exts -fcontext-stackXX #-}
| (where XX is some generated number)
| However, compiling this gives me an error:
| Test.hs: unknown flags in  {-# OPTIONS #-} pragma: -fcontext-stack60
| 
| Is it supposed to be possible to set the context stack using the OPTIONS
| pragma, and if so, what am I missing?
| 
| /Anders
| _______________________________________________
| Haskell-Cafe mailing list
| [EMAIL PROTECTED]
| http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to