[commit: ghc] master: Remove mention of `-unreg` in error message (3508b68)

git at git.haskell.org git at git.haskell.org
Wed Mar 18 09:30:00 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3508b68f1a1e9a7ba4cdea5bac4e557739349da1/ghc

>---------------------------------------------------------------

commit 3508b68f1a1e9a7ba4cdea5bac4e557739349da1
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Wed Mar 18 10:21:18 2015 +0100

    Remove mention of `-unreg` in error message
    
    The `-unreg` flag was removed in commit dade8ab (2007), see #1008.
    
    [skip-ci]


>---------------------------------------------------------------

3508b68f1a1e9a7ba4cdea5bac4e557739349da1
 ghc/Main.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ghc/Main.hs b/ghc/Main.hs
index d30a50b..da95ebf 100644
--- a/ghc/Main.hs
+++ b/ghc/Main.hs
@@ -315,7 +315,7 @@ checkOptions mode dflags srcs objs = do
    when ((filter (not . wayRTSOnly) (ways dflags) /= interpWays)
          && isInterpretiveMode mode) $
       do throwGhcException (UsageError
-                   "--interactive can't be used with -prof or -unreg.")
+                   "--interactive can't be used with -prof.")
         -- -ohi sanity check
    if (isJust (outputHi dflags) &&
       (isCompManagerMode mode || srcs `lengthExceeds` 1))



More information about the ghc-commits mailing list