summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTom Ellis <tom-git@jaguarpaw.co.uk>2022-09-19 19:02:27 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-09-20 13:12:27 -0400
commit6a8c6b5ede0345bf0bb1b34d93fe7dc759b99bfd (patch)
tree22d4d3cf599e51a69f55fd74c5b631cbcf99086b /utils
parent7beb356e944bf3415394fd6aeb7841aca5759020 (diff)
downloadhaskell-6a8c6b5ede0345bf0bb1b34d93fe7dc759b99bfd.tar.gz
Add notes to ghc-prim Haddocks that users should not import it
Diffstat (limited to 'utils')
-rw-r--r--utils/genprimopcode/Main.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/genprimopcode/Main.hs b/utils/genprimopcode/Main.hs
index 288ba325fb..1c06ea1bb6 100644
--- a/utils/genprimopcode/Main.hs
+++ b/utils/genprimopcode/Main.hs
@@ -446,7 +446,9 @@ In PrimopWrappers we set some crucial GHC options
gen_wrappers :: Info -> String
gen_wrappers (Info _ entries)
- = "{-# LANGUAGE MagicHash, NoImplicitPrelude, UnboxedTuples #-}\n"
+ = "-- | Users should not import this module. It is GHC internal only.\n"
+ ++ "-- Use \"GHC.Exts\" instead.\n"
+ ++ "{-# LANGUAGE MagicHash, NoImplicitPrelude, UnboxedTuples #-}\n"
-- Dependencies on Prelude must be explicit in libraries/base, but we
-- don't need the Prelude here so we add NoImplicitPrelude.
++ "{-# OPTIONS_GHC -Wno-deprecations -O0 -fno-do-eta-reduction #-}\n"