Skip to content

Commit d230572

Browse files
authored
Merge pull request #6450 from bwignall/typo
Fix typos
2 parents 787b1f2 + ba892c5 commit d230572

File tree

18 files changed

+20
-20
lines changed

18 files changed

+20
-20
lines changed

Cabal/Distribution/Fields/Field.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fieldLineBS (FieldLine _ bs) = bs
7373
-- | Section arguments, e.g. name of the library
7474
data SectionArg ann
7575
= SecArgName !ann !ByteString
76-
-- ^ identifier, or omething which loos like number. Also many dot numbers, i.e. "7.6.3"
76+
-- ^ identifier, or something which looks like number. Also many dot numbers, i.e. "7.6.3"
7777
| SecArgStr !ann !ByteString
7878
-- ^ quoted string
7979
| SecArgOther !ann !ByteString

Cabal/Distribution/Simple/Configure.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ dependencySatisfiable
972972
-- Reinterpret the "package name" as an unqualified component
973973
-- name
974974
= LSubLibName $ packageNameToUnqualComponentName depName
975-
-- Check whether a libray exists and is visible.
975+
-- Check whether a library exists and is visible.
976976
-- We don't disambiguate between dependency on non-existent or private
977977
-- library yet, so we just return a bool and later report a generic error.
978978
visible lib = maybe

Cabal/Distribution/Simple/Test/Log.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ summarizePackage verbosity packageLog = do
143143
where
144144
addTriple (p1, f1, e1) (p2, f2, e2) = (p1 + p2, f1 + f2, e1 + e2)
145145

146-
-- | Print a summary of a single test case's result to the console, supressing
146+
-- | Print a summary of a single test case's result to the console, suppressing
147147
-- output for certain verbosity or test filter levels.
148148
summarizeTest :: Verbosity -> TestShowDetails -> TestLogs -> IO ()
149149
summarizeTest _ _ (GroupLogs {}) = return ()

Cabal/Distribution/Types/BuildInfo.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ data BuildInfo = BuildInfo {
8282
-- Example 2: a library that is being built by a foreing tool (e.g. rust)
8383
-- and copied and registered together with this library. The
8484
-- logic on how this library is built will have to be encoded in a
85-
-- custom Setup for now. Oherwise cabal would need to lear how to
85+
-- custom Setup for now. Otherwise cabal would need to lear how to
8686
-- call arbitrary library builders.
8787
extraLibFlavours :: [String], -- ^ Hidden Flag. This set of strings, will be appended to all libraries when
8888
-- copying. E.g. [libHS<name>_<flavour> | flavour <- extraLibFlavours]. This

Cabal/Distribution/Types/PackageDescription.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,6 @@ instance L.HasBuildInfos PackageDescription where
475475
<*> (traverse . L.buildInfo) f x6 -- benchmarks
476476
<*> pure a20 -- data files
477477
<*> pure a21 -- data dir
478-
<*> pure a22 -- exta src files
478+
<*> pure a22 -- extra src files
479479
<*> pure a23 -- extra temp files
480480
<*> pure a24 -- extra doc files

Cabal/Distribution/Utils/IOData.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ instance KnownIODataMode LBS.ByteString where
7878
-- This is the dual operation ot 'hGetIODataContents',
7979
-- and consequently the handle is closed with `hClose`.
8080
--
81-
-- /Note:/ this performes lazy-IO.
81+
-- /Note:/ this performs lazy-IO.
8282
--
8383
-- @since 2.2
8484
hPutContents :: System.IO.Handle -> IOData -> Prelude.IO ()

Cabal/Distribution/Utils/Structured.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ typeName f (Structure t v n s) = fmap (\n' -> Structure t v n' s) (f n)
178178
-- | Flatten 'Structure' into something we can calculate hash of.
179179
--
180180
-- As 'Structure' can be potentially infinite. For mutually recursive types,
181-
-- we keep track of 'TypeRep's, and put just 'TypeRep' name when it's occured
181+
-- we keep track of 'TypeRep's, and put just 'TypeRep' name when it's occurred
182182
-- another time.
183183
structureBuilder :: Structure -> Builder.Builder
184184
structureBuilder s0 = State.evalState (go s0) Map.empty where

Cabal/doc/hcar/Cabal-201604.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ \subsubsection*{Looking Forward}
9494
\item Further work on nix-style local builds, perhaps making that code path the
9595
default.
9696
\item Enabling Hackage Security by default.
97-
\item Native suport for
97+
\item Native support for
9898
\href{https://github.com/haskell/cabal/pull/2540}{``foreign libraries''}:
9999
Haskell libraries that are intended to be used by non-Haskell code.
100100
\item New Parsec-based parser for \texttt{.cabal} files.

Cabal/tests/ParserTests/errors/big-version.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cabal-version: 3.0
2-
name: big-vesion
2+
name: big-version
33
-- 10 digits
44
version: 1234567890
55

Cabal/tests/ParserTests/regressions/big-version.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cabal-version: 3.0
2-
name: big-vesion
2+
name: big-version
33
-- 9 digits
44
version: 123456789
55

Cabal/tests/ParserTests/regressions/big-version.expr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ GenericPackageDescription
8282
licenseRaw = Left NONE,
8383
maintainer = "",
8484
package = PackageIdentifier
85-
{pkgName = `PackageName "big-vesion"`,
85+
{pkgName = `PackageName "big-version"`,
8686
pkgVersion = `mkVersion [123456789]`},
8787
pkgUrl = "",
8888
setupBuildInfo = Nothing,

Cabal/tests/ParserTests/regressions/big-version.format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cabal-version: 3.0
2-
name: big-vesion
2+
name: big-version
33
version: 123456789
44

55
library

Cabal/tests/Test/Laws.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ monoid_2 :: (Eq a, Data.Monoid.Monoid a) => a -> a -> a -> Bool
5353
monoid_2 x y z = (x `mappend` y) `mappend` z
5454
== x `mappend` (y `mappend` z)
5555

56-
-- | The 'mconcat' definition. It can be overidden for the sake of effeciency
56+
-- | The 'mconcat' definition. It can be overidden for the sake of efficiency
5757
-- but it must still satisfy the property given by the default definition:
5858
--
5959
-- > mconcat = foldr mappend mempty

cabal-install/Distribution/Client/DistDirLayout.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ data CabalDirLayout = CabalDirLayout {
155155

156156
-- | Information about the root directory of the project.
157157
--
158-
-- It can either be an implict project root in the current dir if no
158+
-- It can either be an implicit project root in the current dir if no
159159
-- @cabal.project@ file is found, or an explicit root if the file is found.
160160
--
161161
data ProjectRoot =
162-
-- | -- ^ An implict project root. It contains the absolute project
162+
-- | -- ^ An implicit project root. It contains the absolute project
163163
-- root dir.
164164
ProjectRootImplicit FilePath
165165

cabal-install/Distribution/Client/Security/HTTP.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ mkReqHeaders reqHeaders mRange = concat [
143143
insert :: Eq a => a -> [b] -> [(a, [b])] -> [(a, [b])]
144144
insert x y = modifyAssocList x (++ y)
145145

146-
-- modify the first maching element
146+
-- modify the first matching element
147147
modifyAssocList :: Eq a => a -> (b -> b) -> [(a, b)] -> [(a, b)]
148148
modifyAssocList a f = go where
149149
go [] = []

cabal-install/Distribution/Solver/Types/InstSolverPackage.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Distribution.Types.MungedPackageName
1414
import Distribution.InstalledPackageInfo (InstalledPackageInfo)
1515
import GHC.Generics (Generic)
1616

17-
-- | An 'InstSolverPackage' is a pre-existing installed pacakge
17+
-- | An 'InstSolverPackage' is a pre-existing installed package
1818
-- specified by the dependency solver.
1919
data InstSolverPackage = InstSolverPackage {
2020
instSolverPkgIPI :: InstalledPackageInfo,

cabal-testsuite/PackageTests/Regression/T5309/memoized-tcm/costMatrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class CostMatrix
139139
* the median for the two. Puts the median and alphabet size into retMedian,
140140
* which must therefore by necessity be allocated elsewhere.
141141
*
142-
* This functin allocates _if necessary_. So freeing inputs after a call will not
142+
* This function allocates _if necessary_. So freeing inputs after a call will not
143143
* cause invalid reads from the cost matrix.
144144
*/
145145
int getSetCostMedian(dcElement_t* left, dcElement_t* right, dcElement_t* retMedian);

generics-sop-lens.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ genericLenses
3838
genericLenses p = case gdatatypeInfo p of
3939
Newtype _ _ _ -> "-- newtype deriving not implemented"
4040
ADT _ _ (Constructor _ :* Nil) -> "-- fieldnameless deriving not implemented"
41-
ADT _ _ (Infix _ _ _ :* Nil) -> "-- infix consturctor deriving not implemented"
41+
ADT _ _ (Infix _ _ _ :* Nil) -> "-- infix constructor deriving not implemented"
4242
ADT _ dn (Record _ fis :* Nil) ->
4343
unlines $ concatMap replaceTypes $ hcollapse $ hcmap (Proxy :: Proxy Typeable) derive fis
4444
where
@@ -57,7 +57,7 @@ genericClassyLenses
5757
genericClassyLenses p = case gdatatypeInfo p of
5858
Newtype _ _ _ -> "-- newtype deriving not implemented"
5959
ADT _ _ (Constructor _ :* Nil) -> "-- fieldnameless deriving not implemented"
60-
ADT _ _ (Infix _ _ _ :* Nil) -> "-- infix consturctor deriving not implemented"
60+
ADT _ _ (Infix _ _ _ :* Nil) -> "-- infix constructor deriving not implemented"
6161
ADT _ dn (Record _ fis :* Nil) ->
6262
unlines $ concatMap replaceTypes $
6363
[[ "class Has" ++ dn ++ " a where"

0 commit comments

Comments
 (0)