[Git][ghc/ghc][master] Update phases.rst

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Thu Oct 13 09:59:51 UTC 2022



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
beebf546 by Simon Hengel at 2022-10-13T05:59:37-04:00
Update phases.rst

(the name of the original source file is $1, not $2)
- - - - -


1 changed file:

- docs/users_guide/phases.rst


Changes:

=====================================
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:



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/beebf546c9ea818c9d5a61688bfee8f3b7dbeb9f

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/beebf546c9ea818c9d5a61688bfee8f3b7dbeb9f
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221013/286e0535/attachment.html>


More information about the ghc-commits mailing list