summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Hengel <sol@typeful.net>2022-09-26 23:45:27 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-10-13 05:59:37 -0400
commitbeebf546c9ea818c9d5a61688bfee8f3b7dbeb9f (patch)
treeea3869701bf377d67f85fad8ef7f88bb379625ae
parent44692713c6fdfb1bf50a2480ca304e6498a0f3a3 (diff)
downloadhaskell-beebf546c9ea818c9d5a61688bfee8f3b7dbeb9f.tar.gz
Update phases.rst
(the name of the original source file is $1, not $2)
-rw-r--r--docs/users_guide/phases.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst
index 3a1996bc20..c4fa26e3d5 100644
--- a/docs/users_guide/phases.rst
+++ b/docs/users_guide/phases.rst
@@ -576,13 +576,13 @@ Options affecting a Haskell pre-processor
.. code-block:: sh
#!/bin/sh
- ( echo "{-# LINE 1 \"$2\" #-}" ; iconv -f l1 -t utf-8 $2 ) > $3
+ ( echo "{-# LINE 1 \"$1\" #-}" ; iconv -f l1 -t utf-8 $2 ) > $3
and pass ``-F -pgmF convert.sh`` to GHC. The ``-f l1`` option tells
iconv to convert your Latin-1 file, supplied in argument ``$2``,
while the "-t utf-8" options tell iconv to return a UTF-8 encoded
file. The result is redirected into argument ``$3``. The
- ``echo "{-# LINE 1 \"$2\" #-}"`` just makes sure that your error
+ ``echo "{-# LINE 1 \"$1\" #-}"`` just makes sure that your error
positions are reported as in the original source file.
.. _options-codegen: