Skip to content

Commit

Permalink
Update links to haskellstack.org in code
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Jul 30, 2024
1 parent 4e1c68b commit 2f34649
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/Stack/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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) $
Expand Down Expand Up @@ -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" <>
Expand Down
4 changes: 2 additions & 2 deletions src/Stack/Init.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Lock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion src/Stack/Options/BuildParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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."
))

Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Options/GhciParser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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."
))
Expand Down
2 changes: 1 addition & 1 deletion src/Stack/Types/Build/Exception.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
4 changes: 2 additions & 2 deletions src/Stack/Types/Config/Exception.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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) =
Expand Down

0 comments on commit 2f34649

Please sign in to comment.