X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FErr.lhs;h=90142f400ff76b775eb2f5550cf26380adbda4c9;hb=be2750a0a11b919fb03cc070074e430f88bdfa90;hp=b2bca941a6fa67033d636c71dd65d2ec79a9b8cc;hpb=fb80d56c0b7617261c93a808e9001bbb25a7562e;p=ghc-base.git diff --git a/GHC/Err.lhs b/GHC/Err.lhs index b2bca94..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 () +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'.