[Git][ghc/ghc][master] Add interface-stability test for ghc-prim

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Thu Mar 13 05:47:46 UTC 2025


Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
24d373a6 by Matthew Craven at 2025-03-13T01:47:18-04:00
Add interface-stability test for ghc-prim

- - - - -


5 changed files:

- testsuite/tests/interface-stability/README.mkd
- testsuite/tests/interface-stability/all.T
- + testsuite/tests/interface-stability/ghc-prim-exports.stdout
- + testsuite/tests/interface-stability/ghc-prim-exports.stdout-mingw32
- utils/dump-decls/Main.hs


Changes:

=====================================
testsuite/tests/interface-stability/README.mkd
=====================================
@@ -6,10 +6,19 @@ utility to dump all exported declarations of all exposed modules for the
 following packages:
 
   * `base`
+  * `ghc-experimental`
+  * `template-haskell`
+  * `ghc-prim`
 
 These are compared against the expected exports in the test's corresponding
 `.stdout` file.
 
+Stability expectations vary between these packages: Changes to the
+interface of `base` normally need a [CLC proposal](https://github.com/haskell/core-libraries-committee).
+The interfaces for the other packages listed are tracked primarily to
+prevent _accidental_ changes to them when making changes in
+`ghc-internal`, from which they re-export many things.
+
 
 ## Updating expected output
 


=====================================
testsuite/tests/interface-stability/all.T
=====================================
@@ -10,3 +10,4 @@ def check_package(pkg_name):
 check_package('base')
 check_package('ghc-experimental')
 check_package('template-haskell')
+check_package('ghc-prim')


=====================================
testsuite/tests/interface-stability/ghc-prim-exports.stdout
=====================================
The diff for this file was not included because it is too large.

=====================================
testsuite/tests/interface-stability/ghc-prim-exports.stdout-mingw32
=====================================
The diff for this file was not included because it is too large.

=====================================
utils/dump-decls/Main.hs
=====================================
@@ -71,8 +71,7 @@ ignoredModules =
     ]
   where
     unstableModules =
-        [ "GHC.Prim"
-        , "GHC.Conc.POSIX"
+        [ "GHC.Conc.POSIX"
         , "GHC.Conc.IO"
         ]
     platformDependentModules =



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/24d373a69c17d11da42c7fdc93efd4c17bd3f2c7

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/24d373a69c17d11da42c7fdc93efd4c17bd3f2c7
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250313/b119706e/attachment-0001.html>


More information about the ghc-commits mailing list