From 02a9724838be832fa97440a4b46890af200ece30 Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Fri, 29 Nov 2024 14:41:45 -0500 Subject: [PATCH] Manual typos corrections (detected with typos) The typos tool cannot --write-changes when the fix is ambigous. These need manual fixes: - Typo -expections - Typo ths - Typo ot - Typo dependend --- Cabal/src/Distribution/PackageDescription/Check/Common.hs | 2 +- Cabal/src/Distribution/Simple/Program/Types.hs | 2 +- Cabal/src/Distribution/Simple/Utils.hs | 2 +- Cabal/src/Distribution/Utils/IOData.hs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cabal/src/Distribution/PackageDescription/Check/Common.hs b/Cabal/src/Distribution/PackageDescription/Check/Common.hs index 89aa51dff47..5bdf5c33fe7 100644 --- a/Cabal/src/Distribution/PackageDescription/Check/Common.hs +++ b/Cabal/src/Distribution/PackageDescription/Check/Common.hs @@ -116,7 +116,7 @@ partitionDeps ads ns ds = do -- for important dependencies like base). checkPVP :: Monad m - => (String -> PackageCheck) -- Warn message dependend on name + => (String -> PackageCheck) -- Warn message depends on name -- (e.g. "base", "Cabal"). -> [Dependency] -> CheckM m () diff --git a/Cabal/src/Distribution/Simple/Program/Types.hs b/Cabal/src/Distribution/Simple/Program/Types.hs index 630b22580cf..3b03f6353cf 100644 --- a/Cabal/src/Distribution/Simple/Program/Types.hs +++ b/Cabal/src/Distribution/Simple/Program/Types.hs @@ -143,7 +143,7 @@ data ConfiguredProgram = ConfiguredProgram , programMonitorFiles :: [FilePath] -- ^ In addition to the 'programLocation' where the program was found, -- these are additional locations that were looked at. The combination - -- of ths found location and these not-found locations can be used to + -- of this found location and these not-found locations can be used to -- monitor to detect when the re-configuring the program might give a -- different result (e.g. found in a different location). } diff --git a/Cabal/src/Distribution/Simple/Utils.hs b/Cabal/src/Distribution/Simple/Utils.hs index d2e738900da..097255b286f 100644 --- a/Cabal/src/Distribution/Simple/Utils.hs +++ b/Cabal/src/Distribution/Simple/Utils.hs @@ -388,7 +388,7 @@ die' verbosity msg = withFrozenCallStack $ do =<< pure . addErrorPrefix =<< prefixWithProgName msg --- Type which will be a wrapper for cabal -expections and cabal-install exceptions +-- Type which will be a wrapper for cabal -exceptions and cabal-install exceptions data VerboseException a = VerboseException CallStack POSIXTime Verbosity a deriving (Show, Typeable) diff --git a/Cabal/src/Distribution/Utils/IOData.hs b/Cabal/src/Distribution/Utils/IOData.hs index 73e86493d1f..833fc8f4ee3 100644 --- a/Cabal/src/Distribution/Utils/IOData.hs +++ b/Cabal/src/Distribution/Utils/IOData.hs @@ -80,7 +80,7 @@ instance KnownIODataMode LBS.ByteString where -- | 'IOData' Wrapper for 'System.IO.hPutStr' and 'System.IO.hClose' -- --- This is the dual operation ot 'hGetIODataContents', +-- This is the dual operation to 'hGetIODataContents', -- and consequently the handle is closed with `hClose`. -- -- /Note:/ this performs lazy-IO.