From: simonmar Date: Wed, 21 Sep 2005 09:54:59 +0000 (+0000) Subject: [project @ 2005-09-21 09:54:59 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~201 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=20a40a62e69d0cfce063b2e1b415d77eb35c0b86;p=ghc-hetmet.git [project @ 2005-09-21 09:54:59 by simonmar] Document the -x flag --- diff --git a/ghc/docs/users_guide/flags.xml b/ghc/docs/users_guide/flags.xml index 0e3147d..8342dcc 100644 --- a/ghc/docs/users_guide/flags.xml +++ b/ghc/docs/users_guide/flags.xml @@ -122,6 +122,12 @@ static - + + suffix + Override default behaviour for source files + static + - + diff --git a/ghc/docs/users_guide/using.xml b/ghc/docs/users_guide/using.xml index 25869d9..22de98c 100644 --- a/ghc/docs/users_guide/using.xml +++ b/ghc/docs/users_guide/using.xml @@ -515,6 +515,30 @@ ghc -c Foo.hs of the compiler, dumping the result in a file. Note that this differs from the previous behaviour of dumping the file to standard output. + + + Overriding the default behaviour for a file + + As described above, the way in which a file is processed by GHC + depends on its suffix. This behaviour can be overriden using the + option: + + + + suffix + + + + Causes all files following this option on the command + line to be processed as if they had the suffix + suffix. For example, to compile a + Haskell module in the file M.my-hs, + use ghc -c -x hs M.my-hs. + + + + +