From: simonmar Date: Thu, 12 Jan 2006 10:04:36 +0000 (+0000) Subject: [project @ 2006-01-12 10:04:36 by simonmar] X-Git-Tag: final_switch_to_darcs,_this_repo_is_now_live~32 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=c6b2930d3f7d91217a634bd592d184e383598e67;p=ghc-hetmet.git [project @ 2006-01-12 10:04:36 by simonmar] Document that source files are ASCII or UTF-8 --- diff --git a/ghc/docs/users_guide/separate_compilation.xml b/ghc/docs/users_guide/separate_compilation.xml index 21490b1..c33ff21 100644 --- a/ghc/docs/users_guide/separate_compilation.xml +++ b/ghc/docs/users_guide/separate_compilation.xml @@ -30,16 +30,30 @@ Haskell source files + filenames + Each Haskell source module should be placed in a file on its own. - The file should usually be named after the module name, by + Usually, the file should be named after the module name, replacing dots in the module name by directory separators. For example, on a Unix system, the module A.B.C should be placed in the file A/B/C.hs, - relative to some base directory. GHC's behaviour if this rule - is not followed is fully defined by the following section (). + relative to some base directory. If the module is not going to + be imported by another module (Main, for + example), then you are free to use any filename for it. + + unicode + + GHC assumes that source files are + ASCIIASCII or + UTF-8UTF-8 only, other + encodingsencoding are + not recognised. However, invalid UTF-8 sequences will be + ignored in comments, so it is possible to use other encodings + such as + Latin-1Latin-1, as + long as the non-comment source code is ASCII only. diff --git a/ghc/docs/users_guide/using.xml b/ghc/docs/users_guide/using.xml index 32c194a..8cbcd35 100644 --- a/ghc/docs/users_guide/using.xml +++ b/ghc/docs/users_guide/using.xml @@ -153,19 +153,19 @@ module X where - - .lhs - lhs suffix - + .hs - A “literate Haskell” module. + A Haskell module. - .hs + + .lhs + lhs suffix + - A not-so-literate Haskell module. + A “literate Haskell” module. @@ -368,7 +368,7 @@ ghc ––make Main.hs file. - You don't have to write aMakefile. + You don't have to write a Makefile. Makefilesavoiding