[Git][ghc/ghc][master] dump-decls: Suppress unit-ids

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Fri Jan 10 19:58:57 UTC 2025



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


Commits:
e1c133f2 by Ben Gamari at 2025-01-10T14:58:25-05:00
dump-decls: Suppress unit-ids

While the testsuite driver already normalizes these away, they are
nevertheless a severe nuisance when diffing outside of the testsuite.

Intriguingly, this doesn't completely eliminate the unit IDs; some
wired-in names are still printed. However, this is a cheap and helpful
improvement over the status quo so I am simply going to accept this.

Fixes #25334.

- - - - -


1 changed file:

- utils/dump-decls/Main.hs


Changes:

=====================================
utils/dump-decls/Main.hs
=====================================
@@ -38,6 +38,7 @@ run root pkg_nm = runGhc (Just root) $ do
             , "-dppr-cols=1000"
             , "-fprint-explicit-runtime-reps"
             , "-fprint-explicit-foralls"
+            , "-fsuppress-unit-ids"
             ]
     dflags <- do
         dflags <- getSessionDynFlags



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e1c133f2fed2c006b1158fc2d6b33aa8b9069b2e
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/20250110/e7373e0f/attachment.html>


More information about the ghc-commits mailing list