diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2012-01-12 17:21:00 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2012-01-12 17:21:00 +0000 |
commit | 50fd5a991f8a941f7357f48c98463d0ed1991fab (patch) | |
tree | b5bdd7211bb54698d4d6d78ba6a8ff7040a250e6 /compiler/main/CmdLineParser.hs | |
parent | 4ada19d8ed90b03c3ced30be8fff3950a884748a (diff) | |
parent | 3a3dcc31e401e48771d430f3bf02d5e019b6f997 (diff) | |
download | haskell-50fd5a991f8a941f7357f48c98463d0ed1991fab.tar.gz |
Merge branch 'master' of http://darcs.haskell.org/ghc
Diffstat (limited to 'compiler/main/CmdLineParser.hs')
-rw-r--r-- | compiler/main/CmdLineParser.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/main/CmdLineParser.hs b/compiler/main/CmdLineParser.hs index c0301dc29b..148e11f65b 100644 --- a/compiler/main/CmdLineParser.hs +++ b/compiler/main/CmdLineParser.hs @@ -80,8 +80,7 @@ addErr :: Monad m => String -> EwM m () addErr e = EwM (\(L loc _) es ws -> return (es `snocBag` L loc e, ws, ())) addWarn :: Monad m => String -> EwM m () -addWarn msg = EwM (\(L loc _) es ws -> return (es, ws `snocBag` L loc w, ())) - where w = "Warning: " ++ msg +addWarn msg = EwM (\(L loc _) es ws -> return (es, ws `snocBag` L loc msg, ())) deprecate :: Monad m => String -> EwM m () deprecate s = do |