diff options
author | Takenobu Tani <takenobu.hs@gmail.com> | 2020-05-30 23:11:59 +0900 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-06-10 03:39:59 -0400 |
commit | 2487912938f188cb264e4a11d21bf750adccc5e7 (patch) | |
tree | 13843cfd8f27bf6f1672a4e37d6af0e04bb34d18 /compiler/GHC/Builtin/primops.txt.pp | |
parent | a47e6442bc4be4a33339499d876792ba109e8d32 (diff) | |
download | haskell-2487912938f188cb264e4a11d21bf750adccc5e7.tar.gz |
Clarify leaf module names for new module hierarchy
This updates comments only.
This patch replaces leaf module names according to new module
hierarchy [1][2] as followings:
* Expand leaf names to easily find the module path:
for instance, `Id.hs` to `GHC.Types.Id`.
* Modify leaf names according to new module hierarchy:
for instance, `Convert.hs` to `GHC.ThToHs`.
* Fix typo:
for instance, `GHC.Core.TyCo.Rep.hs` to `GHC.Core.TyCo.Rep`
See also !3375
[1]: https://gitlab.haskell.org/ghc/ghc/-/wikis/Make-GHC-codebase-more-modular
[2]: https://gitlab.haskell.org/ghc/ghc/issues/13009
Diffstat (limited to 'compiler/GHC/Builtin/primops.txt.pp')
-rw-r--r-- | compiler/GHC/Builtin/primops.txt.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Builtin/primops.txt.pp b/compiler/GHC/Builtin/primops.txt.pp index 1e3b9b8af5..859fb99ae7 100644 --- a/compiler/GHC/Builtin/primops.txt.pp +++ b/compiler/GHC/Builtin/primops.txt.pp @@ -2602,7 +2602,7 @@ primop RaiseOp "raise#" GenPrimOp -- Hence, it has 'botDiv', not 'exnDiv'. -- For the same reasons, 'raise#' is marked as "can_fail" (which 'raiseIO#' -- is not), but not as "has_side_effects" (which 'raiseIO#' is). - -- See Note [PrimOp can_fail and has_side_effects] in PrimOp.hs. + -- See Note [PrimOp can_fail and has_side_effects] in "GHC.Builtin.PrimOps". strictness = { \ _arity -> mkClosedStrictSig [topDmd] botDiv } out_of_line = True can_fail = True @@ -2653,7 +2653,7 @@ primop RaiseOverflowOp "raiseOverflow#" GenPrimOp primop RaiseIOOp "raiseIO#" GenPrimOp a -> State# RealWorld -> (# State# RealWorld, b #) with - -- See Note [Precise exceptions and strictness analysis] in Demand.hs + -- See Note [Precise exceptions and strictness analysis] in "GHC.Types.Demand" -- for why this is the *only* primop that has 'exnDiv' strictness = { \ _arity -> mkClosedStrictSig [topDmd, topDmd] exnDiv } out_of_line = True |