diff options
author | Chaitanya Koparkar <ckoparkar@gmail.com> | 2018-09-05 13:41:24 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2018-09-05 13:41:24 +0200 |
commit | a811d938acb09b23b11173842143a0fa946bf5cc (patch) | |
tree | f4e300b2d47cfd530822dd9cd5a815ff2e073d70 /libraries/base/GHC/Err.hs | |
parent | 49d50b2b7d194dca0b23de6fe4dcc717562e90a7 (diff) | |
download | haskell-a811d938acb09b23b11173842143a0fa946bf5cc.tar.gz |
base: Add references to Notes for certain special imports
Summary:
Modules like GHC.Integer, GHC.Natural etc. are special and sometimes
have to be imported just to resolve build ordering issues. It's useful
to refer to the appropriate Notes at such import sites.
Test Plan: Read it.
Reviewers: RyanGlScott, bgamari, hvr, simonpj
Reviewed By: RyanGlScott, simonpj
Subscribers: simonpj, rwbarton, carter
GHC Trac Issues: #15526
Differential Revision: https://phabricator.haskell.org/D5092
Diffstat (limited to 'libraries/base/GHC/Err.hs')
-rw-r--r-- | libraries/base/GHC/Err.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/base/GHC/Err.hs b/libraries/base/GHC/Err.hs index 1f1ad903ae..095ccd8dd7 100644 --- a/libraries/base/GHC/Err.hs +++ b/libraries/base/GHC/Err.hs @@ -29,7 +29,9 @@ import GHC.Stack.Types import GHC.Prim import GHC.Integer () -- Make sure Integer and Natural are compiled first import GHC.Natural () -- because GHC depends on it in a wired-in way - -- so the build system doesn't see the dependency + -- so the build system doesn't see the dependency. + -- See Note [Depend on GHC.Integer] and + -- Note [Depend on GHC.Natural] in GHC.Base. import {-# SOURCE #-} GHC.Exception ( errorCallWithCallStackException , errorCallException ) |