diff --git a/data/config.yaml b/data/config.yaml index 024c377..e5b0839 100644 --- a/data/config.yaml +++ b/data/config.yaml @@ -92,7 +92,7 @@ url-source: # sha256: b48f3d3a508d0c140d1c801e04afc65e80c0d25e7e939a8a41edb387b26b81b3 # This is a way to override platform detection, e.g. when you're running -# a Ubuntu derivate based on 18.04, you could do: +# a Ubuntu derivative based on 18.04, you could do: # # platform-override: # arch: A_64 diff --git a/docs/guide.md b/docs/guide.md index 3c0bb6d..99ef557 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -78,7 +78,7 @@ Partial configuration is fine. Command line options always override the config f ## Overriding distro detection -If you're running e.g. an Ubuntu derivate based on 18.04 and ghcup is picking bindists that +If you're running e.g. an Ubuntu derivative based on 18.04 and ghcup is picking bindists that don't work well, you could do this in `config.yaml`: ```yml @@ -610,7 +610,7 @@ Examples: ## Continuous integration On Windows, GHCup can be installed automatically on a CI runner -non-interactively, as below. The paramaters to the PowerShell script are +non-interactively, as below. The parameters to the PowerShell script are specified positionally, after `-ArgumentList`: ```ps diff --git a/lib-opt/GHCup/OptParse/Compile.hs b/lib-opt/GHCup/OptParse/Compile.hs index ba14235..c83fffe 100644 --- a/lib-opt/GHCup/OptParse/Compile.hs +++ b/lib-opt/GHCup/OptParse/Compile.hs @@ -157,7 +157,7 @@ Examples: ghcup compile hls --version 1.7.0.0 --ghc 8.10.7 --cabal-update # compile from master for ghc 9.2.3 using 'git describe' to name the binary and ignore the pinned index state ghcup compile hls -g master --git-describe-version --ghc 9.2.3 -- --index-state=@(date '+%s') - # compile a specific commit for ghc 9.2.3 and set a specifc version for the binary name + # compile a specific commit for ghc 9.2.3 and set a specific version for the binary name ghcup compile hls -g a32db0b -o 1.7.0.0-p1 --ghc 9.2.3|] diff --git a/lib/GHCup/Errors.hs b/lib/GHCup/Errors.hs index cd3138f..390a88f 100644 --- a/lib/GHCup/Errors.hs +++ b/lib/GHCup/Errors.hs @@ -525,7 +525,7 @@ data HTTPNotModified = HTTPNotModified Text instance Pretty HTTPNotModified where pPrint (HTTPNotModified etag) = - text "Remote resource not modifed, etag was:" <+> pPrint etag + text "Remote resource not modified, etag was:" <+> pPrint etag instance HFErrorProject HTTPNotModified where eBase _ = 240 @@ -820,7 +820,7 @@ instance Exception ParseError instance HFErrorProject ParseError where eBase _ = 500 - eDesc _ = "A parse error occured." + eDesc _ = "A parse error occurred." data UnexpectedListLength = UnexpectedListLength String diff --git a/lib/GHCup/GHC.hs b/lib/GHCup/GHC.hs index dd6fc07..624ad5d 100644 --- a/lib/GHCup/GHC.hs +++ b/lib/GHCup/GHC.hs @@ -1101,8 +1101,8 @@ compileGHC targetGhc crossTarget ov bstrap jobs mbuildConfig patches aargs build let possible_files = if isWindows then ((workdir "hadrian") ) <$> ["build.bat"] else ((workdir "hadrian") ) <$> ["build", "build.sh"] - exsists <- forM possible_files (\f -> liftIO (doesFileExist f) <&> (,f)) - case filter fst exsists of + exists <- forM possible_files (\f -> liftIO (doesFileExist f) <&> (,f)) + case filter fst exists of [] -> throwE HadrianNotFound ((_, x):_) -> pure x diff --git a/lib/GHCup/Platform.hs b/lib/GHCup/Platform.hs index b580335..b3ae321 100644 --- a/lib/GHCup/Platform.hs +++ b/lib/GHCup/Platform.hs @@ -8,7 +8,7 @@ {-| -Module : GHCup.Plaform +Module : GHCup.Platform Description : Retrieving platform information Copyright : (c) Julian Ospald, 2020 License : LGPL-3.0 diff --git a/lib/GHCup/Prelude/File/Posix.hs b/lib/GHCup/Prelude/File/Posix.hs index 3bab560..dbd3655 100644 --- a/lib/GHCup/Prelude/File/Posix.hs +++ b/lib/GHCup/Prelude/File/Posix.hs @@ -240,7 +240,7 @@ recreateSymlink symsource newsym fail' = do createSymbolicLink sympoint newsym --- copys files, recreates symlinks, fails on all other types +-- copies files, recreates symlinks, fails on all other types install :: FilePath -> FilePath -> Bool -> IO () install from to fail' = do fs <- PF.getSymbolicLinkStatus from diff --git a/lib/GHCup/Prelude/Process/Posix.hs b/lib/GHCup/Prelude/Process/Posix.hs index bdc263b..6089be6 100644 --- a/lib/GHCup/Prelude/Process/Posix.hs +++ b/lib/GHCup/Prelude/Process/Posix.hs @@ -148,7 +148,7 @@ execLogged exe args chdir lfile env = do void $ SPIB.fdWrite fileFd (bs' <> "\n") void $ SPIB.fdWrite stdOutput (bs' <> "\n") - -- Reads fdIn and logs the output in a continous scrolling area + -- Reads fdIn and logs the output in a continuous scrolling area -- of 'size' terminal lines. Also writes to a log file. printToRegion :: Fd -> Fd -> Int -> MVar Bool -> Bool -> IO () printToRegion fileFd fdIn size pState no_color = do diff --git a/lib/GHCup/Utils.hs b/lib/GHCup/Utils.hs index c8b2b22..b0003d2 100644 --- a/lib/GHCup/Utils.hs +++ b/lib/GHCup/Utils.hs @@ -277,7 +277,7 @@ rmPlainHLS = do ----------------------------------- --- | Whether the given GHC versin is installed. +-- | Whether the given GHC version is installed. ghcInstalled :: (MonadIO m, MonadReader env m, HasDirs env, MonadThrow m) => GHCTargetVersion -> m Bool ghcInstalled ver = do ghcdir <- ghcupGHCDir ver diff --git a/lib/GHCup/Version.hs b/lib/GHCup/Version.hs index 9e01725..3ac33e2 100644 --- a/lib/GHCup/Version.hs +++ b/lib/GHCup/Version.hs @@ -31,7 +31,7 @@ import Data.Void (Void) -- | This reflects the API version of the YAML. -- --- Note that when updating this, CI requires that the file exsists AND the same file exists at +-- Note that when updating this, CI requires that the file exists AND the same file exists at -- 'https://www.haskell.org/ghcup/exp/ghcup-.yaml' with some newlines added. ghcupURL :: URI ghcupURL = [uri|https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.8.yaml|] diff --git a/scoop-better-shimexe/shim.c b/scoop-better-shimexe/shim.c index 2415738..1d39787 100644 --- a/scoop-better-shimexe/shim.c +++ b/scoop-better-shimexe/shim.c @@ -205,7 +205,7 @@ int main() // CreateProcess, and therefore we fallback to ShellExecuteEx, // which CAN create elevated processes, at the cost of opening a new separate // window. - // Theorically, this could be fixed (or rather, worked around) using pipes + // Theoretically, this could be fixed (or rather, worked around) using pipes // and IPC, but... this is a question for another day. SHELLEXECUTEINFOW sei = {0}; diff --git a/scripts/bootstrap/bootstrap-haskell b/scripts/bootstrap/bootstrap-haskell index 6536cfa..e145c1c 100755 --- a/scripts/bootstrap/bootstrap-haskell +++ b/scripts/bootstrap/bootstrap-haskell @@ -681,7 +681,7 @@ ask_hls() { *) echo "Possible choices are:" echo - echo "Y - Yes, install the haskell-langauge-server" + echo "Y - Yes, install the haskell-language-server" echo "N - No, don't install anything more (default)" echo echo "Please make your choice and press ENTER."