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
a1f67b8f
Commit
a1f67b8f
authored
Oct 03, 2016
by
Edward Z. Yang
Browse files
package-tests helper cabal_install_with_docs for building with docs.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
b5a4d9aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/tests/PackageTests/PackageTester.hs
View file @
a1f67b8f
...
...
@@ -28,6 +28,7 @@ module PackageTests.PackageTester
,
cabal'
,
cabal_build
,
cabal_install
,
cabal_install_with_docs
,
ghcPkg
,
ghcPkg'
,
compileSetup
...
...
@@ -421,6 +422,17 @@ cabal_install args = do
cabal
"register"
[]
return
()
-- | This abstracts the common pattern of "installing" a package,
-- with haddock documentation.
cabal_install_with_docs
::
[
String
]
->
TestM
()
cabal_install_with_docs
args
=
do
cabal
"configure"
args
cabal
"build"
[]
cabal
"haddock"
[]
cabal
"copy"
[]
cabal
"register"
[]
return
()
-- | Determines what Setup executable to run and runs it
doCabal
::
[
String
]
-- ^ extra arguments
->
TestM
Result
...
...
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