Skip to content

Commit 6c53b70

Browse files
Eric Lindbladandreasabel
authored andcommitted
typos
1 parent 24edb7f commit 6c53b70

File tree

21 files changed

+35
-35
lines changed

21 files changed

+35
-35
lines changed

exes/ImportClient.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ isErrNotFound _ = False
868868

869869
-- | We can do http digest auth, however currently the Network.Browser module
870870
-- does not cache the auth info so it has to re-auth for every single request.
871-
-- So instead here we just make it pre-emptively supply basic auth info.
871+
-- So instead here we just make it preemptively supply basic auth info.
872872
-- We assume this is fine since we're probably working with localhost anyway.
873873
--
874874
setAuthorityFromURI :: URI -> HttpSession ()

src/Data/IntTrie.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ test1 = example2 == mkTrie example1
137137
#endif
138138

139139
-- Each node has a size and a sequence of keys followed by an equal length
140-
-- sequnce of corresponding entries. Since we're going to flatten this into
140+
-- sequence of corresponding entries. Since we're going to flatten this into
141141
-- a single array then we will need to replace the trie structure with pointers
142142
-- represented as array offsets.
143143

src/Distribution/Client/Mirror/Repo.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ packageExists targetRepo pkgInfo =
197197
-- | Finalize the mirror
198198
--
199199
-- That is, now that the packages have been uploaded to the target repo,
200-
-- update the index and securify files (if applicable). This is only necessary
200+
-- update the index and security files (if applicable). This is only necessary
201201
-- "dumb" target repositories.
202202
finalizeMirror :: SourceRepo -> TargetRepo -> MirrorSession ()
203203
finalizeMirror _ TargetHackage2{} =

src/Distribution/Server.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ shutdown :: Server -> IO ()
246246
shutdown server =
247247
Features.shutdownAllFeatures (serverFeatures server)
248248

249-
--TODO: stop accepting incomming connections,
249+
--TODO: stop accepting incoming connections,
250250
-- wait for connections to be processed.
251251

252252
-- | Write out a checkpoint of the server state. This makes recovery quicker

src/Distribution/Server/Features/Core/State.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ migrateAddUpdateLog users = do
255255
-- pre-existing 'preferred-versions' entries from the V1 'PackagesState' log
256256
-- (since that's the only place we keep track of their history for now)
257257
-- * We do this here rather than in the security feature so that this happens
258-
-- before we set up the hook to update the hackage on package changes
258+
-- before we set up the hook to update the Hackage on package changes
259259
-- (otherwise the index would continuously be updated during this process,
260260
-- which would be far too expensive).
261261
-- * Moreover, this allows us to order the index such that the TUF files are

src/Distribution/Server/Features/Distro.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ maintainerGroupDescription dname = nullDescription
240240
where str = display dname
241241

242242
-- TODO: This calls parseCSV rather that importCSV -- not sure if that
243-
-- matters (in particular, importCSV chops off the last, extranenous,
243+
-- matters (in particular, importCSV chops off the last, extraneous,
244244
-- null entry that parseCSV adds)
245245
lookCSVFile :: (CSVFile -> ServerPartE Response) -> ServerPartE Response
246246
lookCSVFile func = do

src/Distribution/Server/Features/Distro/Distributions.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ distroPackageStatus distro package dv = Map.lookup distro =<< Map.lookup package
8282

8383
--- Removing
8484

85-
-- | Remove a distirbution from the list of known distirbutions
85+
-- | Remove a distribution from the list of known distributions
8686
removeDistro :: DistroName -> Distributions -> Distributions
8787
removeDistro distro distros = distros { nameMap = Map.delete distro (nameMap distros) }
8888

src/Distribution/Server/Features/Distro/Types.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ instance Pretty DistroName where
4040
instance Parsec DistroName where
4141
parsec = DistroName <$> P.munch1 (\c -> Char.isAlphaNum c || c `elem` "-_()[]{}=$,;")
4242

43-
-- | Listing of known distirbutions and their maintainers
43+
-- | Listing of known distributions and their maintainers
4444
data Distributions = Distributions {
4545
nameMap :: !(Map.Map DistroName UserIdSet)
4646
}
4747
deriving (Eq, Typeable, Show)
4848

49-
-- | Listing of which distirbutions have which version of particular
49+
-- | Listing of which distributions have which versions of particular
5050
-- packages.
5151
data DistroVersions = DistroVersions {
5252
packageDistroMap :: !(Map.Map PackageName (Map.Map DistroName DistroPackageInfo)),

src/Distribution/Server/Features/LegacyRedirects.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import qualified System.FilePath.Posix as Posix (joinPath, splitExtension)
1818

1919

2020
-- | A feature to provide redirection for URLs that existed in the first
21-
-- incarnation of the hackage server.
21+
-- incarnation of the Hackage server.
2222
--
2323
legacyRedirectsFeature :: UploadFeature -> HackageFeature
2424
legacyRedirectsFeature upload = (emptyHackageFeature "legacy") {
@@ -32,7 +32,7 @@ legacyRedirectsFeature upload = (emptyHackageFeature "legacy") {
3232
, featureState = []
3333
}
3434

35-
-- | Support for the old URL scheme from the first version of hackage.
35+
-- | Support for the old URL scheme from the first version of Hackage.
3636
--
3737

3838
-- | POST for package upload, particularly for cabal-install compatibility.

src/Distribution/Server/Features/PackageInfoJSON.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ data PackageInfoJSONResource = PackageInfoJSONResource {
7373
-- | Initializing our feature involves adding JSON variants to the
7474
-- endpoints that serve basic information about a package-version,
7575
-- and a packages version deprecation status.
76-
-- Aditionally we set up caching for these endpoints,
76+
-- Additionally we set up caching for these endpoints,
7777
-- and attach a package change hook that invalidates the cache
7878
-- line for a package when it changes
7979
initPackageInfoJSONFeature
@@ -128,7 +128,7 @@ initPackageInfoJSONFeature env = do
128128
}
129129

130130

131-
-- | Pure function for extrcacting basic package info from a Cabal file
131+
-- | Pure function for extracting basic package info from a Cabal file
132132
getBasicDescription
133133
:: CabalFileText
134134
-> Int

0 commit comments

Comments
 (0)