From 0c167905094aa4512274caf8910fcbc037e9040e Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 7 Mar 2005 13:18:51 +0000 Subject: [PATCH] [project @ 2005-03-07 13:18:51 by simonmar] Mention not to use comments on the same line as OPTIONS_GHC --- ghc/docs/users_guide/using.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ghc/docs/users_guide/using.xml b/ghc/docs/users_guide/using.xml index e1a5ab7..80b8790 100644 --- a/ghc/docs/users_guide/using.xml +++ b/ghc/docs/users_guide/using.xml @@ -64,9 +64,12 @@ module X where the top of your source files, upto the first (non-literate,non-empty) line not containing OPTIONS_GHC. Multiple OPTIONS_GHC - pragmas are recognised. Note that your command shell does not + pragmas are recognised. Do not put comments before, or on the same line + as, the OPTIONS_GHC pragma. + + Note that your command shell does not get to the source file options, they are just included literally - in the array of command-line arguments the compiler driver + in the array of command-line arguments the compiler maintains internally, so you'll be desperately disappointed if you try to glob etc. inside OPTIONS_GHC. -- 1.7.10.4