Skip to content

Commit 0ca0946

Browse files
authored
Merge pull request #269 from vaerksted/master
fix typos
2 parents 9a5f2d1 + d7f0841 commit 0ca0946

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

hackage-security-HTTP/src/Hackage/Security/Client/Repository/HttpLib/HTTP.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import Hackage.Security.Util.Pretty
4040
--
4141
-- TODO: This currently uses the lazy bytestring API offered by the HTTP
4242
-- library. Unfortunately this provides no way of closing the connection when
43-
-- the callback decides it doens't require any further input. It seems
43+
-- the callback decides it doesn't require any further input. It seems
4444
-- impossible however to implement a proper streaming API.
4545
-- See <https://github.com/haskell/HTTP/issues/86>.
4646
withClient :: (Browser -> HttpLib -> IO a) -> IO a

hackage-security/src/Hackage/Security/Client.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ data HasUpdates = HasUpdates | NoUpdates
8989
-- This implements the logic described in Section 5.1, "The client application",
9090
-- of the TUF spec. It checks which of the server metadata has changed, and
9191
-- downloads all changed metadata to the local cache. (Metadata here refers
92-
-- both to the TUF security metadata as well as the Hackage packge index.)
92+
-- both to the TUF security metadata as well as the Hackage package index.)
9393
--
9494
-- You should pass @Nothing@ for the UTCTime _only_ under exceptional
9595
-- circumstances (such as when the main server is down for longer than the

hackage-security/src/Hackage/Security/Client/Formats.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ instance Unify Format where
5151
--
5252
-- Rather than having a general list here, we enumerate all possibilities.
5353
-- This means we are very precise about what we expect, and we avoid any runtime
54-
-- errors about unexpect format definitions.
54+
-- errors about unexpected format definitions.
5555
--
5656
-- NOTE: If we add additional cases here (for dealing with additional formats)
5757
-- all calls to @error "inaccessible"@ need to be reevaluated.

hackage-security/src/Hackage/Security/TUF/Header.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class HasHeader a where
3636
-- every file update.
3737
--
3838
-- 'Show' and 'Read' instance are defined in terms of the underlying 'Int'
39-
-- (this is use for example by hackage during the backup process).
39+
-- (this is used for example by Hackage during the backup process).
4040
newtype FileVersion = FileVersion Int54
4141
deriving (Eq, Ord, Typeable)
4242

@@ -55,7 +55,7 @@ instance Read FileVersion where
5555
newtype FileExpires = FileExpires (Maybe UTCTime)
5656
deriving (Eq, Ord, Show, Typeable)
5757

58-
-- | Occassionally it is useful to read only a header from a file.
58+
-- | Occasionally it is useful to read only a header from a file.
5959
--
6060
-- 'HeaderOnly' intentionally only has a 'FromJSON' instance (no 'ToJSON').
6161
data Header = Header {

hackage-security/src/Hackage/Security/TUF/Layout/Cache.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Hackage.Security.Util.Path
1515
-- | Location of the various files we cache
1616
--
1717
-- Although the generic TUF algorithms do not care how we organize the cache,
18-
-- we nonetheless specity this here because as long as there are tools which
18+
-- we nonetheless specify this here because as long as there are tools which
1919
-- access files in the cache directly we need to define the cache layout.
2020
-- See also comments for 'defaultCacheLayout'.
2121
data CacheLayout = CacheLayout {

hackage-security/src/Hackage/Security/TUF/Patterns.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- | Patterns and replacements
22
--
33
-- NOTE: This module was developed to prepare for proper delegation (#39).
4-
-- It is currently unusued.
4+
-- It is currently unused.
55
{-# LANGUAGE CPP #-}
66
#if __GLASGOW_HASKELL__ >= 800
77
{-# LANGUAGE DeriveLift #-}

0 commit comments

Comments
 (0)