diff --git a/ghcup-0.0.5.yaml b/ghcup-0.0.5.yaml index e70ba2e..fa3d646 100644 --- a/ghcup-0.0.5.yaml +++ b/ghcup-0.0.5.yaml @@ -2120,8 +2120,17 @@ ghcupDownloads: - old viChangeLog: https://github.com/commercialhaskell/stack/blob/master/ChangeLog.md#v251 viPostInstall: &stack-post | - Stack manages GHC versions internally by default. In order to make it use ghcup installed GHC versions have a look at the options 'system-ghc', 'compiler-check' and 'compiler': https://docs.haskellstack.org/en/stable/yaml_configuration/#system-ghc - Additionally, you should upgrade stack only through ghcup. + Stack manages GHC versions internally by default. In order to make it use ghcup installed + GHC versions you can run the following commands: + stack config set install-ghc false --global + stack config set system-ghc true --global + + On windows, you may find the following config options useful too: + skip-msys, extra-path, extra-include-dirs, extra-lib-dirs + + Also check out: https://docs.haskellstack.org/en/stable/yaml_configuration + + !!! Additionally, you should upgrade stack only through ghcup and not use 'stack upgrade' !!! viArch: A_64: Linux_UnknownLinux: diff --git a/lib/GHCup/Utils/Logger.hs b/lib/GHCup/Utils/Logger.hs index 2831948..e82f8ba 100644 --- a/lib/GHCup/Utils/Logger.hs +++ b/lib/GHCup/Utils/Logger.hs @@ -62,7 +62,7 @@ myLoggerT LoggerConfig {..} loggingt = runLoggingT loggingt mylogger (x:xs) -> fromLogStr . foldr (\a b -> a <> toLogStr "\n" <> b) mempty . ((l <> toLogStr " " <> x) :) - . fmap (\line' -> (toLogStr (style' "[ ... ] ") <> line' )) + . fmap (\line' -> toLogStr (style' "[ ... ] ") <> line' ) $ xs when (lcPrintDebug || (not lcPrintDebug && (level /= LevelDebug))) @@ -70,7 +70,7 @@ myLoggerT LoggerConfig {..} loggingt = runLoggingT loggingt mylogger -- raw output let lr = case level of - LevelDebug -> toLogStr "Debug: " + LevelDebug -> toLogStr "Debug:" LevelInfo -> toLogStr "Info:" LevelWarn -> toLogStr "Warn:" LevelError -> toLogStr "Error:"