X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FErr.lhs;h=9a94ce0c17aa7f39a15a9d111a5075da60c6e3de;hb=c72dc997c63a629f6a2a9f82168ac93dda9ee09e;hp=b2bca941a6fa67033d636c71dd65d2ec79a9b8cc;hpb=fb80d56c0b7617261c93a808e9001bbb25a7562e;p=ghc-base.git diff --git a/GHC/Err.lhs b/GHC/Err.lhs index b2bca94..9a94ce0 100644 --- a/GHC/Err.lhs +++ b/GHC/Err.lhs @@ -33,9 +33,7 @@ module GHC.Err ) where #ifndef __HADDOCK__ -import GHC.Base -import GHC.IOBase -import GHC.List () +import GHC.Types import GHC.Exception #endif \end{code} @@ -48,7 +46,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'.