Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
56b5e9bf
Commit
56b5e9bf
authored
Oct 07, 2007
by
bjorn@bringert.net
Browse files
Use default configuration if we can't parse the config file.
parent
dd7c8205
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/src/Network/Hackage/CabalInstall/Config.hs
View file @
56b5e9bf
...
...
@@ -194,7 +194,10 @@ loadConfig configFile =
case
parseBasicStanza
configFieldDescrs
conf
inp
of
ParseOk
_
conf'
->
return
conf'
ParseFailed
err
->
fail
$
"Error parsing config file "
++
configFile
++
": "
++
showPError
err
do
hPutStrLn
stderr
$
"Error parsing config file "
++
configFile
++
": "
++
showPError
err
hPutStrLn
stderr
$
"Using default configuration."
return
defaultConf
-- FIXME: finish this
writeDefaultConfigFile
::
FilePath
->
IO
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment