Skip to content

Instantly share code, notes, and snippets.

@GuiltyDolphin
Last active September 6, 2015 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuiltyDolphin/f02a55a0c372c92a8f09 to your computer and use it in GitHub Desktop.
Save GuiltyDolphin/f02a55a0c372c92a8f09 to your computer and use it in GitHub Desktop.
Template cabal file for library+executable+tests+benchmarks
name: basic
version: 0.1.0.0
synopsis: Quick one-line summary of project.
license: GPL-3
license-file: LICENSE
author: Author Name
maintainer: maintainer@someplace.tld
copyright: Copyright (C) Copyright Holder
-- category:
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
description: Long description of project.
flag test-basic
default: True
manual: True
library
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -fno-warn-unused-do-bind -Werror
other-extensions: GeneralizedNewtypeDeriving, MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances
exposed-modules: Basic.Basic
, Basic.Other.Types
other-modules: Basic.NotExported
build-depends: base
executable basic
main-is: Main.hs
hs-source-dirs: basic-executable
default-language: Haskell2010
buildable: True
ghc-options: -Wall -fno-warn-unused-do-bind -Werror
other-modules: Basic.SomeModuleUsedByMain
build-depends: base
, basic
test-suite test-basic
type: exitcode-stdio-1.0
main-is: TestSuite.hs
hs-source-dirs: tests
default-language: Haskell2010
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-orphans -Werror
other-modules: Test.Basic.Other.Types
if !flag(test-basic)
buildable: False
else
build-depends: base
, basic
, QuickCheck >= 2.7.6
, test-framework
, test-framework-quickcheck2
benchmark basic-bench
type: exitcode-stdio-1.0
main-is: basicsBench.hs
hs-source-dirs: benchmarks
default-language: Haskell2010
ghc-options: -O
build-depends: base
, criterion
, basic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment