Merge pull request #2385 from david-christiansen/issue/2356

Move mention of PATH earlier in tutorial
This commit is contained in:
David Christiansen 2015-06-28 18:31:14 +02:00
commit 28062bfdff

View File

@ -29,6 +29,13 @@ any dependencies. If, however, you would like the most up to date
development version you can find it, as well as build instructions, on
GitHub at: https://github.com/idris-lang/Idris-dev.
If you haven't previously installed anything using Cabal, then Idris
may not be on your path. Should the Idris executable not be found
please ensure that you have added ``~/.cabal/bin`` to your ``$PATH``
environment variable. Mac OS X users may find they need to add
``~/Library/Haskell/bin`` instead, and Windows users will typically
find that Cabal installs programs in ``%HOME%\AppData\Roaming\cabal\bin``.
To check that installation has succeeded, and to write your first
Idris program, create a file called ``hello.idr`` containing the
following text:
@ -53,10 +60,7 @@ create an executable called ``hello``, which you can run:
Hello world
Please note that the dollar sign ``$`` indicates the shell prompt!
Should the Idris executable not be found please ensure that you have
added ``~/.cabal/bin`` to your ``$PATH`` environment variable. Mac OS
X users may find they need to add ``~/Library/Haskell/bin``
instead. Some useful options to the Idris command are:
Some useful options to the Idris command are:
- ``-o prog`` to compile to an executable called ``prog``.