Skip to content

Commit

Permalink
Fix spelling typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bwignall committed Nov 26, 2019
1 parent 3bf5847 commit 8efc7c1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion academic/icfp2012/shake.tex
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ \section{Implementing Shake}
\subsection{Dynamically Typed Values}
\label{sec:dynamically_typed}
A single Shake program can use multiple types for keys and values. To work with heterogenous values in Haskell we define:
A single Shake program can use multiple types for keys and values. To work with heterogeneous values in Haskell we define:
\ignore\begin{code}
data Any = Any (forall alpha bullet
Expand Down
2 changes: 1 addition & 1 deletion src/Development/Shake/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ commandExplicitAction oparams = do
maybe "" (\x -> "cd " ++ x ++ "; ") cwd ++
last (showCommandForUser2 prog args : [x | UserCommand x <- opts])
verb <- getVerbosity
-- run quietly to supress the tracer (don't want to print twice)
-- run quietly to suppress the tracer (don't want to print twice)
(if verb >= Verbose then quietly else id) act

let tracer act = do
Expand Down
8 changes: 4 additions & 4 deletions src/Development/Shake/Internal/Core/Action.hs
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,17 @@ putWhen v msg = do
putVerbose :: String -> Action ()
putVerbose = putWhen Verbose

-- | Write a normal priority message to the output, only supressed when 'shakeVerbosity' is 'Error', 'Warn' or 'Silent'.
-- | Write a normal priority message to the output, only suppressed when 'shakeVerbosity' is 'Error', 'Warn' or 'Silent'.
-- The output will not be interleaved with any other Shake messages (other than those generated by system commands).
putInfo :: String -> Action ()
putInfo = putWhen Info

-- | Write a semi important message to the output, only supressed when 'shakeVerbosity' is 'Error' or 'Silent'.
-- | Write a semi important message to the output, only suppressed when 'shakeVerbosity' is 'Error' or 'Silent'.
-- The output will not be interleaved with any other Shake messages (other than those generated by system commands).
putWarn :: String -> Action ()
putWarn = putWhen Warn

-- | Write an important message to the output, only supressed when 'shakeVerbosity' is 'Silent'.
-- | Write an important message to the output, only suppressed when 'shakeVerbosity' is 'Silent'.
-- The output will not be interleaved with any other Shake messages (other than those generated by system commands).
putError :: String -> Action ()
putError = putWhen Error
Expand Down Expand Up @@ -263,7 +263,7 @@ traced msg act = do
---------------------------------------------------------------------
-- TRACKING

-- | Track that a key has been used/read by the action preceeding it when 'shakeLint' is active.
-- | Track that a key has been used/read by the action preceding it when 'shakeLint' is active.
lintTrackRead :: ShakeValue key => [key] -> Action ()
-- One of the following must be true:
-- 1) you are the one building this key (e.g. key == topStack)
Expand Down
2 changes: 1 addition & 1 deletion src/Development/Shake/Internal/Errors.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ specialIsOracleKey t = con == "OracleQ"
-- | Error representing all expected exceptions thrown by Shake.
-- Problems when executing rules will be raising using this exception type.
data ShakeException = ShakeException
{shakeExceptionTarget :: String -- ^ The target that was being built when the exception occured.
{shakeExceptionTarget :: String -- ^ The target that was being built when the exception occurred.
,shakeExceptionStack :: [String] -- ^ A description of the call stack, one entry per line.
,shakeExceptionInner :: SomeException -- ^ The underlying exception that was raised.
}
Expand Down
2 changes: 1 addition & 1 deletion src/Development/Shake/Internal/History/Symlink.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ copyFileLink useSymlink from to = do
b <- createLinkMaybe from to
whenJust b $ \_ ->
copyFile from to
-- making files read only stops them from inadvertantly mutating the cache
-- making files read only stops them from inadvertently mutating the cache
forM_ [from, to] $ \x -> do
perm <- getPermissions x
setPermissions x perm{writable=False}
4 changes: 2 additions & 2 deletions src/Development/Shake/Internal/Rules/File.hs
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,14 @@ track tracker xs = do
tracker $ map (FileQ . fileNameFromString) ys


-- | Track that a file was read by the action preceeding it. If 'shakeLint' is activated
-- | Track that a file was read by the action preceding it. If 'shakeLint' is activated
-- then these files must be dependencies of this rule. Calls to 'trackRead' are
-- automatically inserted in 'LintFSATrace' mode.
trackRead :: [FilePath] -> Action ()
trackRead = track lintTrackRead


-- | Track that a file was written by the action preceeding it. If 'shakeLint' is activated
-- | Track that a file was written by the action preceding it. If 'shakeLint' is activated
-- then these files must either be the target of this rule, or never referred to by the build system.
-- Calls to 'trackWrite' are automatically inserted in 'LintFSATrace' mode.
trackWrite :: [FilePath] -> Action ()
Expand Down
2 changes: 1 addition & 1 deletion src/Test/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ shakenEx reenter options test rules sleeper = do
if "clean" `elem` files then
clean >> return Nothing
else return $ Just $ (,) so $ do
-- if you have passed sleep, supress the "no actions" warning
-- if you have passed sleep, suppress the "no actions" warning
when (Sleep `elem` extra1) $ action $ return ()
rules extra2 files

Expand Down

0 comments on commit 8efc7c1

Please sign in to comment.