Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
5bc38af8
Commit
5bc38af8
authored
17 years ago
by
malcolm wallace
Browse files
Options
Downloads
Patches
Plain Diff
fix scope errors in non-GHC branch of an #ifdef
parent
0409a739
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Distribution/Simple/Utils.hs
+2
-2
2 additions, 2 deletions
Distribution/Simple/Utils.hs
with
2 additions
and
2 deletions
Distribution/Simple/Utils.hs
+
2
−
2
View file @
5bc38af8
...
...
@@ -350,11 +350,11 @@ rawSystemStdout' verbosity path args = do
withTempFile
tmpDir
".cmd.stdout"
$
\
tmpName
tmpHandle
->
do
hClose
tmpHandle
let
quote
name
=
"'"
++
name
++
"'"
exit
C
ode
<-
system
$
unwords
(
map
quote
(
path
:
args
))
++
" >"
++
quote
tmpName
exit
c
ode
<-
system
$
unwords
(
map
quote
(
path
:
args
))
++
" >"
++
quote
tmpName
unless
(
exitcode
==
ExitSuccess
)
$
debug
verbosity
$
path
++
" returned "
++
show
exitcode
output
<-
readFile
tmpName
length
output
`
seq
`
return
(
output
,
exit
C
ode
)
length
output
`
seq
`
return
(
output
,
exit
c
ode
)
#
endif
-- | Like the unix xargs program. Useful for when we've got very long command
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment