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.Primin a few places. This should be changed toGHC.Exts. -
We should not import
GHC.Primin the testsuite. -
We could possibly add a warning when
GHC.Primis imported (as if we hadmodule GHC.Prim {-# WARNING "This is unstable. Use GHC.Exts instead." #-})
Edited by Krzysztof Gogolewski