From 7432b327a3c43c4e2e7c777b41a8e17899b8d0d1 Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Mon, 2 Mar 2020 20:52:59 +0100 Subject: Use correct option name (-opti) (fix #17314) s/pgmo/opti --- docs/users_guide/conf.py | 4 ---- docs/users_guide/ghci.rst | 8 ++++---- utils/iserv-proxy/src/Main.hs | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/users_guide/conf.py b/docs/users_guide/conf.py index eb81cf51ec..6fd94db74f 100644 --- a/docs/users_guide/conf.py +++ b/docs/users_guide/conf.py @@ -36,10 +36,6 @@ nitpick_ignore = [ ("c:type", "bool"), - # See #17314 - ("ghc-flag", "-pgmo ⟨port⟩"), - ("ghc-flag", "-pgmo ⟨option⟩"), - ("extension", "DoAndIfThenElse"), ("extension", "RelaxedPolyRec"), diff --git a/docs/users_guide/ghci.rst b/docs/users_guide/ghci.rst index 21102c6846..6fc62544c6 100644 --- a/docs/users_guide/ghci.rst +++ b/docs/users_guide/ghci.rst @@ -3416,10 +3416,10 @@ providing it with a temporary folder (where it will copy the necessary libraries to load to) and port it will listen for the proxy to connect. -Providing :ghc-flag:`-pgmi /path/to/iserv-proxy <-pgmi ⟨cmd⟩>`, -:ghc-flag:`-pgmo ⟨option⟩` and :ghc-flag:`-pgmo ⟨port⟩` in addition to -:ghc-flag:`-fexternal-interpreter` will then make ghc go through the proxy -instead. +Providing :ghc-flag:`-pgmi ⟨/path/to/iserv-proxy⟩ <-pgmi ⟨cmd⟩>` and +:ghc-flag:`-opti ⟨slave-ip⟩ -opti ⟨slave-port⟩ [-opti -v] <-opti ⟨option⟩>` in +addition to :ghc-flag:`-fexternal-interpreter` will then make ghc go through the +proxy instead. There are some limitations when using this. File and process IO will be executed on the target. As such packages like ``git-embed``, diff --git a/utils/iserv-proxy/src/Main.hs b/utils/iserv-proxy/src/Main.hs index 5901ffe562..46d6c65481 100644 --- a/utils/iserv-proxy/src/Main.hs +++ b/utils/iserv-proxy/src/Main.hs @@ -77,9 +77,9 @@ dieWithUsage = do die $ prog ++ ": " ++ msg where #if defined(WINDOWS) - msg = "usage: iserv [-v]" + msg = "usage: iserv [-v]" #else - msg = "usage: iserv [-v]" + msg = "usage: iserv [-v]" #endif main :: IO () -- cgit v1.2.1