[Git][ghc/ghc][wip/rm-showBreakArray] ghci: remove unused showBreakArray function
Cheng Shao (@TerrorJack)
gitlab at gitlab.haskell.org
Sat Feb 22 04:03:20 UTC 2025
Cheng Shao pushed to branch wip/rm-showBreakArray at Glasgow Haskell Compiler / GHC
Commits:
867ef497 by Cheng Shao at 2025-02-22T04:02:29+00:00
ghci: remove unused showBreakArray function
GHCi.BreakArray.showBreakArray is not used anywhere, hence the
housecleaning.
- - - - -
1 changed file:
- libraries/ghci/GHCi/BreakArray.hs
Changes:
=====================================
libraries/ghci/GHCi/BreakArray.hs
=====================================
@@ -30,11 +30,9 @@ module GHCi.BreakArray
, setupBreakpoint
, breakOn
, breakOff
- , showBreakArray
) where
import Prelude -- See note [Why do we import Prelude here?]
-import Control.Monad
import GHC.Exts
import GHC.IO ( IO(..) )
@@ -48,13 +46,6 @@ breakOff, breakOn :: Int
breakOn = 0
breakOff = -1
-showBreakArray :: BreakArray -> IO ()
-showBreakArray array = do
- forM_ [0 .. (size array - 1)] $ \i -> do
- val <- readBreakArray array i
- putStr $ ' ' : show val
- putStr "\n"
-
setupBreakpoint :: BreakArray -> Int -> Int -> IO Bool
setupBreakpoint breakArray ind val
| safeIndex breakArray ind = do
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/867ef49757bd4d99ab50639fdba9ddc636f57d02
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/867ef49757bd4d99ab50639fdba9ddc636f57d02
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/20250221/f31b39bb/attachment-0001.html>
More information about the ghc-commits
mailing list