summaryrefslogtreecommitdiff
path: root/docs/users_guide
diff options
context:
space:
mode:
Diffstat (limited to 'docs/users_guide')
-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: