Skip to content
GitLab
Menu
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
ece620a1
Commit
ece620a1
authored
Mar 21, 2010
by
Duncan Coutts
Browse files
Use Setup.hs when calling setup
In case we've got a compiled Setup binary
parent
7df886b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/PackageTests/PackageTester.hs
View file @
ece620a1
...
...
@@ -106,7 +106,7 @@ cabal_install spec = do
-- | Returns the command that was issued, the return code, and hte output text
cabal
::
PackageSpec
->
[
String
]
->
IO
(
String
,
ExitCode
,
String
)
cabal
spec
cabalArgs
=
run
(
Just
$
directory
spec
)
"run
haskell
"
([
"Setup"
]
++
cabalArgs
)
run
(
Just
$
directory
spec
)
"run
ghc
"
([
"Setup
.hs
"
]
++
cabalArgs
)
-- | Returns the command that was issued, the return code, and hte output text
run
::
Maybe
FilePath
->
String
->
[
String
]
->
IO
(
String
,
ExitCode
,
String
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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