From 20a40a62e69d0cfce063b2e1b415d77eb35c0b86 Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 21 Sep 2005 09:54:59 +0000 Subject: [PATCH] [project @ 2005-09-21 09:54:59 by simonmar] Document the -x flag --- ghc/docs/users_guide/flags.xml | 6 ++++++ ghc/docs/users_guide/using.xml | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) 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. + + + + + -- 1.7.10.4