Skip to content

Commit

Permalink
Merge pull request haskell#5122 from haskell/gbaz-main-is-docs
Browse files Browse the repository at this point in the history
indicate explicitly name req for main-is module
  • Loading branch information
23Skidoo committed Feb 8, 2018
2 parents 11d8a77 + 771c169 commit 2ca7a06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Cabal/doc/developing-packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,8 @@ build information fields (see the section on `build information`_).
module. Note that it is the ``.hs`` filename that must be listed,
even if that file is generated using a preprocessor. The source file
must be relative to one of the directories listed in
:pkg-field:`hs-source-dirs`.
:pkg-field:`hs-source-dirs`. Further, while the name of the file may
vary, the module itself must be named ``Main``.

.. pkg-field:: scope: token
:since: 2.0
Expand Down Expand Up @@ -1515,7 +1516,8 @@ standard output and error channels.
even if that file is generated using a preprocessor. The source file
must be relative to one of the directories listed in
:pkg-field:`hs-source-dirs`. This field is analogous to the ``main-is``
field of an executable section.
field of an executable section. Further, while the name of the file may
vary, the module itself must be named ``Main``.

Example: Package using ``exitcode-stdio-1.0`` interface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down

0 comments on commit 2ca7a06

Please sign in to comment.