Skip to content

Commit f1a833b

Browse files
committed
Document main-is behaviour with preprocessors
1 parent 3d9d11e commit f1a833b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

doc/Cabal.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,14 @@ Executable program2
752752
(required)
753753
</term>
754754
<listitem>
755-
<para>The name of the source file containing the
756-
<literal>Main</literal> module, relative to one of the
757-
directories listed in <literal>hs-source-dirs</literal>.</para>
755+
<para>The name of the <filename>.hs</filename> or
756+
<filename>.lhs</filename> file containing the
757+
<literal>Main</literal> module. Note that it is the
758+
<filename>.hs</filename> filename that must be listed, even if
759+
that file is generated using a preprocessor. The source
760+
file must be relative to one of the directories listed in
761+
<literal>hs-source-dirs</literal>.
762+
</para>
758763
</listitem>
759764
</varlistentry>
760765
<varlistentry>

0 commit comments

Comments
 (0)