From 0b5ddc7f2c10ee84631dd6cb5f6368afbc389449 Mon Sep 17 00:00:00 2001 From: Brian Wignall Date: Fri, 10 Jan 2020 10:47:46 -0500 Subject: Fix more typos, via an improved Levenshtein-style corrector --- ghc/GHCi/UI.hs | 2 +- ghc/Main.hs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ghc') diff --git a/ghc/GHCi/UI.hs b/ghc/GHCi/UI.hs index 51fe3d0431..f49c1834d3 100644 --- a/ghc/GHCi/UI.hs +++ b/ghc/GHCi/UI.hs @@ -4027,7 +4027,7 @@ setBreakFlag toggle arr i = do -- -- Bugfix: if the user closed stdout or stderr, the flushing will fail, -- raising another exception. We therefore don't put the recursive --- handler arond the flushing operation, so if stderr is closed +-- handler around the flushing operation, so if stderr is closed -- GHCi will just die gracefully rather than going into an infinite loop. handler :: GhciMonad m => SomeException -> m Bool handler exception = do diff --git a/ghc/Main.hs b/ghc/Main.hs index 9f6ab1e132..77d2616bd1 100644 --- a/ghc/Main.hs +++ b/ghc/Main.hs @@ -175,7 +175,7 @@ main' postLoadMode dflags0 args flagWarnings = do } -- turn on -fimplicit-import-qualified for GHCi now, so that it - -- can be overriden from the command-line + -- can be overridden from the command-line -- XXX: this should really be in the interactive DynFlags, but -- we don't set that until later in interactiveUI -- We also set -fignore-optim-changes and -fignore-hpc-changes, @@ -890,7 +890,7 @@ options may be necessary in order to find the .hi files. This is used by Cabal for generating the ComponentId for a package. The ComponentId must change when the visible ABI of -the package chagnes, so during registration Cabal calls ghc --abi-hash +the package changes, so during registration Cabal calls ghc --abi-hash to get a hash of the package's ABI. -} @@ -962,7 +962,7 @@ Unfortunately this seems to have broken somehow on OS X: as a result, defaultHooks (in hschooks.c) is not called, which does not initialize the GC stats. As a result, this breaks things like `:set +s` in GHCi (#8754). As a hacky workaround, we instead call 'defaultHooks' -directly to initalize the flags in the RTS. +directly to initialize the flags in the RTS. A byproduct of this, I believe, is that hooks are likely broken on OS X when dynamically linking. But this probably doesn't affect most -- cgit v1.2.1