Skip to content

Commit

Permalink
Merge pull request #8139 from mpilgrem/runghcDocs
Browse files Browse the repository at this point in the history
Clarify `runhaskell` in Cabal's guide
  • Loading branch information
mergify[bot] authored May 14, 2022
2 parents d2bff20 + f51b4a2 commit a877a97
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/setup-commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ Setup.hs Commands

.. highlight:: console

The low-level Cabal interface is implemented using ``Setup.hs`` scripts.
You should prefer using higher level interface provided by
nix-style builds.
GHC provides the commands ``runhaskell`` and ``runghc`` (they are equivalent)
to allow you to run Haskell programs without first having to compile them
(scripts). The low-level Cabal interface is implemented using ``Setup.hs``
scripts. You should prefer using higher level interface provided by nix-style
builds.

::

$ runhaskell Setup.hs [command] [option...]

For the summary of the command syntax, run:
For the summary of the ``Setup.hs`` script's command syntax, run:

::

Expand Down

0 comments on commit a877a97

Please sign in to comment.