X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FErr.lhs;h=803fdf0b518a5a6f1865227642a2451e0b2f7555;hb=beaf733bae2acdf2cc1a2b1234e4532a0ccc655d;hp=a44e1a5fd8b499678e4cfb90a311d668a99a380e;hpb=be44c54248f9a5a5bd6168af464013b405c15aab;p=ghc-base.git diff --git a/GHC/Err.lhs b/GHC/Err.lhs index a44e1a5..803fdf0 100644 --- a/GHC/Err.lhs +++ b/GHC/Err.lhs @@ -52,12 +52,13 @@ import GHC.Exception %********************************************************* \begin{code} --- error stops execution and displays an error message +-- | 'error' stops execution and displays an error message. error :: String -> a error s = throw (ErrorCall s) +-- | A special case of 'error'. -- It is expected that compilers will recognize this and insert error --- messages which are more appropriate to the context in which undefined +-- messages which are more appropriate to the context in which 'undefined' -- appears. undefined :: a