[Git][ghc/ghc][master] ghci: fix bootstrapping with 9.12.3-rc1 and above
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: f8919262 by Cheng Shao at 2025-09-23T20:44:54-04:00 ghci: fix bootstrapping with 9.12.3-rc1 and above This patch fixes bootstrapping GHC with 9.12.3-rc1 and above. ghci defines `Binary` instance for `HalfWord` in `ghc-heap`, which is a proper `newtype` in 9.14 and starting from 9.12.3. Given we don't build `ghc-heap` in stage0, we need to fix this predicate so that it corresponds to the boot ghc versions that contain the right version of `ghc-heap`. - - - - - 1 changed file: - libraries/ghci/GHCi/Message.hs Changes: ===================================== libraries/ghci/GHCi/Message.hs ===================================== @@ -525,7 +525,7 @@ instance Binary (FunPtr a) where put = put . castFunPtrToPtr get = castPtrToFunPtr <$> get -#if MIN_VERSION_ghc_internal(9,1500,0) +#if MIN_VERSION_GLASGOW_HASKELL(9,12,2,20250919) instance Binary Heap.HalfWord where put x = put (fromIntegral x :: Word32) get = fromIntegral <$> (get :: Get Word32) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f8919262dc3034851fbefab86fe45dd7... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f8919262dc3034851fbefab86fe45dd7... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)