Discourage importing GHC.Prim
The module GHC.Prim
contains primitives which are defined internally in GHC. Whether something is a primitive or not is an implementation detail; we can change this between releases.
The documentation of the module already states "Use GHC.Exts
from the base package instead of importing this module directly." but we should be more consistent:
-
The user's guide suggests importing
GHC.Prim
in a few places. This should be changed toGHC.Exts
. -
We should not import
GHC.Prim
in the testsuite. -
We could possibly add a warning when
GHC.Prim
is imported (as if we hadmodule GHC.Prim {-# WARNING "This is unstable. Use GHC.Exts instead." #-}
)