[Haskell-cafe] Using -fcontext-stackXX in an OPTIONS pragma

Simon Peyton-Jones simonpj at microsoft.com
Tue Apr 6 11:27:01 EDT 2004


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: haskell-cafe-bounces at haskell.org [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of
| Anders Höckersten
| Sent: 05 April 2004 13:43
| To: haskell-cafe at haskell.org
| 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
| Haskell-Cafe at haskell.org
| http://www.haskell.org/mailman/listinfo/haskell-cafe


More information about the Haskell-Cafe mailing list