Simon Peyton Jones pushed to branch wip/spj-reinstallable-base at Glasgow Haskell Compiler / GHC Commits: 0a767c33 by Simon Peyton Jones at 2026-04-07T17:43:00+01:00 Wibble - - - - - 1 changed file: - compiler/GHC/Types/Name.hs Changes: ===================================== compiler/GHC/Types/Name.hs ===================================== @@ -668,10 +668,12 @@ stableNameCmp (Name { n_sort = s1, n_occ = occ1 }) -- The ordinary compare on OccNames is lexicographic where -- Later constructors are bigger + -- Compare External and KnownKey solely module sort_cmp (External m1) (External m2) = m1 `stableModuleCmp` m2 + sort_cmp (External m1) (KnownKey m2) = m1 `stableModuleCmp` m2 sort_cmp (External {}) _ = LT - sort_cmp (KnownKey {}) (External {}) = GT + sort_cmp (KnownKey m1) (External m2) = m1 `stableModuleCmp` m2 sort_cmp (KnownKey m1) (KnownKey m2) = m1 `stableModuleCmp` m2 sort_cmp (KnownKey {}) _ = LT View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0a767c33d522f24d81e8626d329c97b1... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/0a767c33d522f24d81e8626d329c97b1... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Simon Peyton Jones (@simonpj)