@@ -25,7 +25,6 @@ spitting out a warning that "you should run `stk init` to make things better".
2525module Stack.Config
2626 ( loadConfig
2727 , loadConfigYaml
28- , packagesParser
2928 , getImplicitGlobalProjectDir
3029 , getSnapshots
3130 , makeConcreteSnapshot
@@ -67,7 +66,6 @@ import qualified Hpack
6766import GHC.Conc ( getNumProcessors )
6867import Network.HTTP.StackClient
6968 ( httpJSON , parseUrlThrow , getResponseBody )
70- import Options.Applicative ( Parser , help , long , metavar , strOption )
7169import Pantry ( loadSnapshot )
7270import Path
7371 ( PathException (.. ), (</>) , parent , parseAbsDir
@@ -1291,32 +1289,27 @@ getDefaultUserConfigPath configRoot = do
12911289 liftIO $ writeBinaryFileAtomic userConfigPath defaultConfigYaml
12921290 pure userConfigPath
12931291
1294- packagesParser :: Parser [String ]
1295- packagesParser = many (strOption
1296- (long " package" <>
1297- metavar " PACKAGE" <>
1298- help " Add a package (can be specified multiple times)" ))
1299-
1292+ -- | The contents of the default Stack global configuration file.
13001293defaultConfigYaml :: (IsString s , Semigroup s ) => s
13011294defaultConfigYaml =
1302- " # This file contains default non-project-specific settings for Stack, used\n " <>
1303- " # in all projects. For more information about Stack's configuration, see\n " <>
1304- " # http://docs.haskellstack.org/en/stable/configure/yaml/\n " <>
1305- " \n " <>
1306- " # The following parameters are used by 'stack new' to automatically fill fields\n " <>
1307- " # in the Cabal file. We recommend uncommenting them and filling them out if\n " <>
1308- " # you intend to use 'stack new'.\n " <>
1309- " # See https://docs.haskellstack.org/en/stable/configure/yaml/non-project/#templates\n " <>
1310- " templates:\n " <>
1311- " params:\n " <>
1312- " # author-name:\n " <>
1313- " # author-email:\n " <>
1314- " # copyright:\n " <>
1315- " # github-username:\n " <>
1316- " \n " <>
1317- " # The following parameter specifies Stack's output styles; STYLES is a\n " <>
1318- " # colon-delimited sequence of key=value, where 'key' is a style name and\n " <>
1319- " # 'value' is a semicolon-delimited list of 'ANSI' SGR (Select Graphic\n " <>
1320- " # Rendition) control codes (in decimal). Use 'stack ls stack-colors --basic'\n " <>
1321- " # to see the current sequence.\n " <>
1322- " # stack-colors: STYLES\n "
1295+ " # This file contains default non-project-specific settings for Stack, used\n \
1296+ \ # in all projects. For more information about Stack's configuration, see\n \
1297+ \ # http://docs.haskellstack.org/en/stable/configure/yaml/\n \
1298+ \ \n \
1299+ \ # The following parameters are used by 'stack new' to automatically fill fields\n \
1300+ \ # in the Cabal file. We recommend uncommenting them and filling them out if\n \
1301+ \ # you intend to use 'stack new'.\n \
1302+ \ # See https://docs.haskellstack.org/en/stable/configure/yaml/non-project/#templates\n \
1303+ \ templates:\n \
1304+ \ params:\n \
1305+ \ # author-name:\n \
1306+ \ # author-email:\n \
1307+ \ # copyright:\n \
1308+ \ # github-username:\n \
1309+ \ \n \
1310+ \ # The following parameter specifies Stack's output styles; STYLES is a\n \
1311+ \ # colon-delimited sequence of key=value, where 'key' is a style name and\n \
1312+ \ # 'value' is a semicolon-delimited list of 'ANSI' SGR (Select Graphic\n \
1313+ \ # Rendition) control codes (in decimal). Use 'stack ls stack-colors --basic'\n \
1314+ \ # to see the current sequence.\n \
1315+ \ # stack-colors: STYLES\n "
0 commit comments