diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-11-07 16:26:59 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-11-07 17:23:34 +0100 |
commit | df3b1d43cc862fe03f0724a9c0ac9e7cecdf4605 (patch) | |
tree | 2b18cef139638c86d35025e934b07ec2c484cd0e /libraries/base/GHC/Exception.hs-boot | |
parent | 832ef3fb8f45f98add9dbfac5387281e3e0bc5dc (diff) | |
download | haskell-df3b1d43cc862fe03f0724a9c0ac9e7cecdf4605.tar.gz |
base: Manually unlit .lhs into .hs modules
This commit mostly converts literate comments into ordinary
Haskell comments or sometimes even Haddock comments, while also
removing literate comments in a few cases where they don't make
much sense anymore.
Moreover, in a few cases trailing whitespaces were removed as well.
Reviewed By: austin
Differential Revision: https://phabricator.haskell.org/D456
Diffstat (limited to 'libraries/base/GHC/Exception.hs-boot')
-rw-r--r-- | libraries/base/GHC/Exception.hs-boot | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libraries/base/GHC/Exception.hs-boot b/libraries/base/GHC/Exception.hs-boot new file mode 100644 index 0000000000..aa19897363 --- /dev/null +++ b/libraries/base/GHC/Exception.hs-boot @@ -0,0 +1,34 @@ +{-# LANGUAGE Trustworthy #-} +{-# LANGUAGE NoImplicitPrelude #-} + +{- +This SOURCE-imported hs-boot module cuts a big dependency loop: + + GHC.Exception +imports Data.Maybe +imports GHC.Base +imports GHC.Err +imports {-# SOURCE #-} GHC.Exception + +More dramatically + + GHC.Exception +imports Data.Typeable +imports Data.Typeable.Internals +imports GHC.Arr (fingerprint representation etc) +imports GHC.Real +imports {-# SOURCE #-} GHC.Exception + +However, GHC.Exceptions loop-breaking exports are all nice, +well-behaved, non-bottom values. The clients use 'raise#' +to get a visibly-bottom value. +-} + +module GHC.Exception ( SomeException, errorCallException, + divZeroException, overflowException, ratioZeroDenomException + ) where +import GHC.Types( Char ) + +data SomeException +divZeroException, overflowException, ratioZeroDenomException :: SomeException +errorCallException :: [Char] -> SomeException |