Skip to content
Snippets Groups Projects
Commit 65b4d2b3 authored by f-a's avatar f-a Committed by Mergify
Browse files

(cabal check) Add "Autogen modules" test for exes

All in `autogen-modules` has to be present either in `other-modules`
or `exposed-modules`.
parent 04d418c1
No related branches found
No related tags found
No related merge requests found
# cabal check
Warning: The package will not build sanely due to these errors:
Warning: On executable 'exe' an 'autogen-module' is not on 'other-modules'
Warning: Hackage would reject this package.
import Test.Cabal.Prelude
-- All `autogen-modules` have to appear in `other-modules` or
-- `exposed-modules` (executables).
main = cabalTest $
fails $ cabal "check" []
cabal-version: 3.0
name: pkg
synopsis: synopsis
description: description
version: 0
category: example
maintainer: none@example.com
license: GPL-3.0-or-later
executable exe
main-is: Main.hs
default-language: Haskell2010
autogen-modules: AutoGenMod
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