Skip to content

Commit

Permalink
Merge pull request #3937 from 23Skidoo/config-init-more-obvious
Browse files Browse the repository at this point in the history
Make the initial '~/.cabal/config' comment more obvious.
  • Loading branch information
BardurArantsson committed Oct 6, 2016
2 parents ff08346 + 47cf508 commit f8095ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cabal-install/Distribution/Client/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -668,14 +668,16 @@ writeConfigFile file comments vals = do
where
explanation = unlines
["-- This is the configuration file for the 'cabal' command line tool."
,""
,"--"
,"-- The available configuration options are listed below."
,"-- Some of them have default values listed."
,""
,"--"
,"-- Lines (like this one) beginning with '--' are comments."
,"-- Be careful with spaces and indentation because they are"
,"-- used to indicate layout for nested sections."
,""
,"--"
,"-- This config file was generated using the following versions"
,"-- of Cabal and cabal-install:"
,"-- Cabal library version: " ++ Text.display cabalVersion
,"-- cabal-install version: " ++ showVersion Paths_cabal_install.version
,"",""
Expand Down

0 comments on commit f8095ac

Please sign in to comment.