-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cabal haddock imply enable-documentation
- Loading branch information
1 parent
1da1893
commit 5e0802a
Showing
6 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
cabal-testsuite/PackageTests/NewHaddock/ImplyDependencies/Lib.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Lib where | ||
|
||
import Text.PrettyPrint (render, text) | ||
|
||
-- | Rendering using 'text' and 'render' | ||
myLibFunc :: IO () | ||
myLibFunc = do | ||
putStrLn (render (text "foo")) |
9 changes: 9 additions & 0 deletions
9
cabal-testsuite/PackageTests/NewHaddock/ImplyDependencies/cabal.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# cabal haddock | ||
Resolving dependencies... | ||
Build profile: -w ghc-<GHCVER> -O1 | ||
In order, the following will be built: | ||
- test-1.0 (lib) (first run) | ||
Configuring library for test-1.0.. | ||
Preprocessing library for test-1.0.. | ||
Running Haddock on library for test-1.0.. | ||
Documentation created: <ROOT>/cabal.dist/work/dist/build/<ARCH>/ghc-<GHCVER>/test-1.0/doc/html/test/index.html |
1 change: 1 addition & 0 deletions
1
cabal-testsuite/PackageTests/NewHaddock/ImplyDependencies/cabal.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
packages: . |
5 changes: 5 additions & 0 deletions
5
cabal-testsuite/PackageTests/NewHaddock/ImplyDependencies/cabal.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Test.Cabal.Prelude | ||
-- Test that `cabal haddock` doesn't require explicit | ||
-- `--enable-dependencies` to happily process links to external packages | ||
main = cabalTest $ | ||
cabal "haddock" ["lib"] |
15 changes: 15 additions & 0 deletions
15
cabal-testsuite/PackageTests/NewHaddock/ImplyDependencies/pkg.cabal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: test | ||
version: 1.0 | ||
cabal-version: >= 1.10 | ||
author: Artem Pelenitsyn | ||
category: PackageTests | ||
build-type: Simple | ||
|
||
description: | ||
Check that `cabal haddock` implies `--enable-dependencies` | ||
--------------------------------------- | ||
|
||
Library | ||
exposed-modules: Lib | ||
build-depends: base, pretty | ||
default-language: Haskell2010 |