From: simonmar Date: Mon, 3 Nov 2003 10:22:21 +0000 (+0000) Subject: [project @ 2003-11-03 10:22:21 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~288 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ab5c070d518a94522477388df9f8817d52296bb6;hp=94a271cc5047d33b86a50699ac3c73bceee38e8e;p=ghc-hetmet.git [project @ 2003-11-03 10:22:21 by simonmar] merge rev. 1.9.6.2 to the HEAD (remove comment about multiple Main modules) --- diff --git a/ghc/docs/users_guide/bugs.sgml b/ghc/docs/users_guide/bugs.sgml index fa4abc8..3e2039e 100644 --- a/ghc/docs/users_guide/bugs.sgml +++ b/ghc/docs/users_guide/bugs.sgml @@ -264,28 +264,6 @@ main = print (array (1,1) [(1,2), (1,3)]) - Dangers with multiple Main - modules. - - GHC does not insist that module Main - lives in a file called Main.hs. This is - useful if you want multiple versions of - Main. But there's a danger: when compiling - module Main (regardless of what file it - comes from), GHC looks for the interface - Main.hi; it uses this to get version - information from the last time it recompiled - Main. The trouble is that this - Main.hi may not correspond to the source - file being compiled. - - Solution: remove Main.hi first. A - better solution would be for GHC to record the source-file - filename in the interface file, or even an MD5 checksum. - - - - GHC does not allow you to have a data type with a context that mentions type variables that are not data type parameters. For example: