Skip to content
Snippets Groups Projects
Commit 73751a9a authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

v2-haddock should fail when v2-build fails

parent 525ef663
No related branches found
No related tags found
No related merge requests found
module Example where
import Prelude
example :: Int
example = False
# cabal v2-build
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
- example-1.0 (lib) (first run)
Configuring library for example-1.0..
Preprocessing library for example-1.0..
Building library for example-1.0..
# cabal v2-haddock
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
- example-1.0 (lib) (first run)
Preprocessing library for example-1.0..
Running Haddock on library for example-1.0..
cabal: Failed to build documentation for example-1.0-inplace.
packages: .
\ No newline at end of file
import Test.Cabal.Prelude
import System.Exit (ExitCode (..))
main = cabalTest $ do
fails $ cabal "v2-build" ["example"]
fails $ cabal "v2-haddock" ["example"]
name: example
version: 1.0
build-type: Simple
cabal-version: >=1.10
library
default-language: Haskell2010
build-depends: base
exposed-modules: Example
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment