summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2016-06-16 08:51:55 (GMT)
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2016-06-16 08:51:55 (GMT)
commitc56f8bd0cfd44a4a6812b62fc5dca3190d3e749f (patch)
tree6ba2d282119246f21b76abcf9a17d3f122cfca05
parente368f3265b80aeb337fbac3f6a70ee54ab14edfd (diff)
downloadghc-c56f8bd0cfd44a4a6812b62fc5dca3190d3e749f.zip
ghc-c56f8bd0cfd44a4a6812b62fc5dca3190d3e749f.tar.gz
ghc-c56f8bd0cfd44a4a6812b62fc5dca3190d3e749f.tar.bz2
CoreMonad: Update error msg function docs
-rw-r--r--compiler/simplCore/CoreMonad.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/simplCore/CoreMonad.hs b/compiler/simplCore/CoreMonad.hs
index fa43312..853f5be 100644
--- a/compiler/simplCore/CoreMonad.hs
+++ b/compiler/simplCore/CoreMonad.hs
@@ -837,22 +837,22 @@ putMsgS = putMsg . text
putMsg :: SDoc -> CoreM ()
putMsg = msg SevInfo
--- | Output a string error to the screen
+-- | Output an error to the screen. Does not cause the compiler to die.
errorMsgS :: String -> CoreM ()
errorMsgS = errorMsg . text
--- | Output an error to the screen
+-- | Output an error to the screen. Does not cause the compiler to die.
errorMsg :: SDoc -> CoreM ()
errorMsg = msg SevError
warnMsg :: SDoc -> CoreM ()
warnMsg = msg SevWarning
--- | Output a fatal string error to the screen. Note this does not by itself cause the compiler to die
+-- | Output a fatal error to the screen. Does not cause the compiler to die.
fatalErrorMsgS :: String -> CoreM ()
fatalErrorMsgS = fatalErrorMsg . text
--- | Output a fatal error to the screen. Note this does not by itself cause the compiler to die
+-- | Output a fatal error to the screen. Does not cause the compiler to die.
fatalErrorMsg :: SDoc -> CoreM ()
fatalErrorMsg = msg SevFatal