Commit ab5c070d authored by simonmar's avatar simonmar
Browse files

[project @ 2003-11-03 10:22:21 by simonmar]

merge rev. to the HEAD (remove comment about multiple Main modules)
parent 94a271cc
......@@ -263,28 +263,6 @@ main = print (array (1,1) [(1,2), (1,3)])</programlisting>
<para>Dangers with multiple <literal>Main</literal>
<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>GHC does not allow you to have a data type with a context
that mentions type variables that are not data type parameters.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment