X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=GHC%2FErr.lhs;h=90142f400ff76b775eb2f5550cf26380adbda4c9;hb=41e8fba828acbae1751628af50849f5352b27873;hp=071e9b61e7441426b21061c1bac8328000bbee4b;hpb=8e9892cd14b7558649fcd9ba0597805eb57505b3;p=ghc-base.git diff --git a/GHC/Err.lhs b/GHC/Err.lhs index 071e9b6..90142f4 100644 --- a/GHC/Err.lhs +++ b/GHC/Err.lhs @@ -1,6 +1,7 @@ \begin{code} -{-# OPTIONS_GHC -XNoImplicitPrelude #-} +{-# LANGUAGE CPP, NoImplicitPrelude #-} {-# OPTIONS_HADDOCK hide #-} + ----------------------------------------------------------------------------- -- | -- Module : GHC.Err @@ -33,9 +34,7 @@ module GHC.Err ) where #ifndef __HADDOCK__ -import GHC.Base -import GHC.IOBase -import GHC.List ( span ) +import GHC.Types import GHC.Exception #endif \end{code} @@ -48,7 +47,7 @@ import GHC.Exception \begin{code} -- | 'error' stops execution and displays an error message. -error :: String -> a +error :: [Char] -> a error s = throw (ErrorCall s) -- | A special case of 'error'.