From ab5c070d518a94522477388df9f8817d52296bb6 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 3 Nov 2003 10:22:21 +0000 Subject: [PATCH 1/1] [project @ 2003-11-03 10:22:21 by simonmar] merge rev. 1.9.6.2 to the HEAD (remove comment about multiple Main modules) --- ghc/docs/users_guide/bugs.sgml | 22 ---------------------- 1 file changed, 22 deletions(-) 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: -- 1.7.10.4