Skip to content

Instantly share code, notes, and snippets.

@acowley
Created April 18, 2012 23:43
Show Gist options
  • Save acowley/2417401 to your computer and use it in GitHub Desktop.
Save acowley/2417401 to your computer and use it in GitHub Desktop.
cabal-test with internal modules
name: cabal-test-test
version: 0.1.0.0
build-type: Simple
cabal-version: >=1.8
-- Library source in "src/lib", Internal module in "src/misc"
library
exposed-modules: MyLib.Foo
other-modules: MyLib.Internal.Bar
hs-source-dirs: src/lib, src/misc
build-depends: base >= 4
-- Test source in "tests"
test-suite tests
type: exitcode-stdio-1.0
hs-source-dirs: tests, src/misc
main-is: Tests.hs
build-depends: base >= 4,
test-framework,
test-framework-hunit,
HUnit,
cabal-test-test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment