[project @ 2003-11-03 10:22:21 by simonmar]
authorsimonmar <unknown>
Mon, 3 Nov 2003 10:22:21 +0000 (10:22 +0000)
committersimonmar <unknown>
Mon, 3 Nov 2003 10:22:21 +0000 (10:22 +0000)
merge rev. 1.9.6.2 to the HEAD (remove comment about multiple Main modules)

ghc/docs/users_guide/bugs.sgml

index fa4abc8..3e2039e 100644 (file)
@@ -264,28 +264,6 @@ main = print (array (1,1) [(1,2), (1,3)])</programlisting>
       </listitem>
 
       <listitem>
-       <para>Dangers with multiple <literal>Main</literal>
-       modules.</para>
-
-       <para>GHC does not insist that module <literal>Main</literal>
-       lives in a file called <filename>Main.hs</filename>.  This is
-       useful if you want multiple versions of
-       <literal>Main</literal>.  But there's a danger: when compiling
-       module <literal>Main</literal> (regardless of what file it
-       comes from), GHC looks for the interface
-       <filename>Main.hi</filename>; it uses this to get version
-       information from the last time it recompiled
-       <literal>Main</literal>.  The trouble is that this
-       <filename>Main.hi</filename> may not correspond to the source
-       file being compiled.</para>
-
-       <para>Solution: remove <filename>Main.hi</filename> first.  A
-       better solution would be for GHC to record the source-file
-       filename in the interface file, or even an MD5 checksum.
-       </para>
-      </listitem>
-    
-      <listitem>
        <para>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: