From 2f3464932117b12104556cfcf6790041bf6a10ff Mon Sep 17 00:00:00 2001 From: Mike Pilgrem Date: Tue, 30 Jul 2024 21:55:53 +0100 Subject: [PATCH] Update links to haskellstack.org in code --- src/Stack/Config.hs | 6 +++--- src/Stack/Init.hs | 4 ++-- src/Stack/Lock.hs | 2 +- src/Stack/Options/BuildParser.hs | 2 +- src/Stack/Options/GhciParser.hs | 2 +- src/Stack/Types/Build/Exception.hs | 2 +- src/Stack/Types/Config/Exception.hs | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Stack/Config.hs b/src/Stack/Config.hs index af9b7e8dce..6163681222 100644 --- a/src/Stack/Config.hs +++ b/src/Stack/Config.hs @@ -792,7 +792,7 @@ withBuildConfig inner = do , "# '", encodeUtf8 (T.pack $ toFilePath config.userGlobalConfigFile), "' instead.\n" , "#\n" , "# For more information about Stack's configuration, see\n" - , "# http://docs.haskellstack.org/en/stable/yaml_configuration/\n" + , "# http://docs.haskellstack.org/en/stable/configure/yaml/\n" , "#\n" , Yaml.encode p] writeBinaryFileAtomic (parent dest relFileReadmeTxt) $ @@ -1250,12 +1250,12 @@ defaultConfigYaml :: (IsString s, Semigroup s) => s defaultConfigYaml = "# This file contains default non-project-specific settings for Stack, used\n" <> "# in all projects. For more information about Stack's configuration, see\n" <> - "# http://docs.haskellstack.org/en/stable/yaml_configuration/\n" <> + "# http://docs.haskellstack.org/en/stable/configure/yaml/\n" <> "\n" <> "# The following parameters are used by 'stack new' to automatically fill fields\n" <> "# in the Cabal file. We recommend uncommenting them and filling them out if\n" <> "# you intend to use 'stack new'.\n" <> - "# See https://docs.haskellstack.org/en/stable/yaml_configuration/#templates\n" <> + "# See https://docs.haskellstack.org/en/stable/configure/yaml/non-project/#templates\n" <> "templates:\n" <> " params:\n" <> "# author-name:\n" <> diff --git a/src/Stack/Init.hs b/src/Stack/Init.hs index 9bc3c9550f..1015a8d48b 100644 --- a/src/Stack/Init.hs +++ b/src/Stack/Init.hs @@ -126,7 +126,7 @@ instance Pretty InitPrettyException where \most recent release of Stack)" , style Url - "http://docs.haskellstack.org/en/stable/yaml_configuration/" + "http://docs.haskellstack.org/en/stable/configure/yaml/" <> "." ] <> blankLine @@ -424,7 +424,7 @@ renderStackYaml p ignoredPackages dupPackages = , "" , "Some commonly used options have been documented as comments in this file." , "For advanced use and comprehensive documentation of the format, please see:" - , "https://docs.haskellstack.org/en/stable/yaml_configuration/" + , "https://docs.haskellstack.org/en/stable/configure/yaml/" ] snapshotHelp = commentHelp [ "A 'specific' Stackage snapshot or a compiler version." diff --git a/src/Stack/Lock.hs b/src/Stack/Lock.hs index ade0a842dd..2501d863db 100644 --- a/src/Stack/Lock.hs +++ b/src/Stack/Lock.hs @@ -188,4 +188,4 @@ lockCachedWanted stackFile snapshot fillWanted = do "# This file was autogenerated by Stack.\n\ \# You should not edit this file by hand.\n\ \# For more information, please see the documentation at:\n\ - \# https://docs.haskellstack.org/en/stable/lock_files\n\n" + \# https://docs.haskellstack.org/en/stable/topics/lock_files\n\n" diff --git a/src/Stack/Options/BuildParser.hs b/src/Stack/Options/BuildParser.hs index a916f1e2c5..f91391a55e 100644 --- a/src/Stack/Options/BuildParser.hs +++ b/src/Stack/Options/BuildParser.hs @@ -129,7 +129,7 @@ targetsParser = <> completer targetCompleter <> help "Can be specified multiple times. If none specified, use all \ \project packages. See \ - \https://docs.haskellstack.org/en/stable/build_command/#target-syntax \ + \https://docs.haskellstack.org/en/stable/commands/build_command/#target-syntax \ \for details." )) diff --git a/src/Stack/Options/GhciParser.hs b/src/Stack/Options/GhciParser.hs index f779a85a53..4d4bf63009 100644 --- a/src/Stack/Options/GhciParser.hs +++ b/src/Stack/Options/GhciParser.hs @@ -28,7 +28,7 @@ ghciOptsParser = GhciOpts ( metavar "TARGET/FILE" <> completer (targetCompleter <> fileExtCompleter [".hs", ".lhs"]) <> help "If none specified, use all project packages. See \ - \https://docs.haskellstack.org/en/stable/build_command/#target-syntax \ + \https://docs.haskellstack.org/en/stable/commands/build_command/#target-syntax \ \for details. If a path to a .hs or .lhs file is specified, it \ \will be loaded." )) diff --git a/src/Stack/Types/Build/Exception.hs b/src/Stack/Types/Build/Exception.hs index 053e1b70bf..b24909459d 100644 --- a/src/Stack/Types/Build/Exception.hs +++ b/src/Stack/Types/Build/Exception.hs @@ -102,7 +102,7 @@ instance Exception BuildException where | otherwise = pure $ "The following target packages were not found: " ++ intercalate ", " (map packageNameString $ Set.toList noKnown) ++ - "\nSee https://docs.haskellstack.org/en/stable/build_command/#target-syntax for details." + "\nSee https://docs.haskellstack.org/en/stable/commands/build_command/#target-syntax for details." notInSnapshot' | Map.null notInSnapshot = [] | otherwise = diff --git a/src/Stack/Types/Config/Exception.hs b/src/Stack/Types/Config/Exception.hs index 89669e2bca..12b17cb95e 100644 --- a/src/Stack/Types/Config/Exception.hs +++ b/src/Stack/Types/Config/Exception.hs @@ -55,7 +55,7 @@ instance Exception ConfigException where , T.unpack url , "':\n" , Yaml.prettyPrintParseException exception - , "\nSee https://docs.haskellstack.org/en/stable/custom_snapshot/" + , "\nSee https://docs.haskellstack.org/en/stable/topics/custom_snapshot/" ] displayException (NoProjectConfigFound dir mcmd) = concat [ "Error: [S-2206]\n" @@ -190,7 +190,7 @@ instance Pretty ConfigPrettyException where \files, see (for the most recent release of Stack)" , style Url - "http://docs.haskellstack.org/en/stable/yaml_configuration/" + "http://docs.haskellstack.org/en/stable/configure/yaml/" <> "." ] pretty (StackWorkEnvNotRelativeDir x) =