Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
ad9d754d
Commit
ad9d754d
authored
May 30, 2007
by
Ian Lynagh
Browse files
Make package.conf files a bit more readable
parent
df58c2a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/ghc-pkg/Main.hs
View file @
ad9d754d
...
...
@@ -641,7 +641,9 @@ writeNewConfig filename packages = do
if
isPermissionError
e
then
die
(
filename
++
": you don't have permission to modify this file"
)
else
ioError
e
hPutStrLn
h
(
show
packages
)
let
shown
=
concat
$
intersperse
",
\n
"
$
map
show
packages
fileContents
=
"["
++
shown
++
"
\n
]"
hPutStrLn
h
fileContents
hClose
h
hPutStrLn
stdout
"done."
...
...
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