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

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@haskell.org [mailto:haskell-cafe-bounces@haskell.org] On Behalf Of | Anders Höckersten | Sent: 05 April 2004 13:43 | To: haskell-cafe@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@haskell.org | http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (1)
-
Simon Peyton-Jones