her.esy.fun/src/posts/0010-Haskell-Now/my-app/my-app.cabal
Yann Esposito (Yogsototh) e24de08c34
Nix introduction
2019-12-31 01:00:04 +01:00

98 lines
2.7 KiB
Plaintext

cabal-version: 2.4
-- Initial package description 'my-app.cabal' generated by 'cabal init'.
-- For further documentation, see http://haskell.org/cabal/users-guide/
-- The name of the package.
name: my-app
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- https://pvp.haskell.org
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 0.1.0.0
-- A short (one-line) description of the package.
synopsis: app used for demonstration
-- A longer description of the package.
-- description:
-- A URL where users can report bugs.
-- bug-reports:
-- The license under which the package is released.
license: BSD-3-Clause
-- The file containing the license text.
license-file: LICENSE
-- The package author(s).
author: Yann Esposito (Yogsototh)
-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer: yann.esposito@gmail.com
-- A copyright notice.
-- copyright:
-- category:
-- Extra files to be distributed with the package, such as examples or a
-- README.
extra-source-files: CHANGELOG.md
common shared-properties
default-language: Haskell2010
build-depends:
base ^>=4.12.0.0
ghc-options:
-Wall
-Wcompat
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wnoncanonical-monad-instances
-- -Werror
-- -O2
library
import: shared-properties
-- Modules exported by the library.
exposed-modules: MyLib
build-depends: protolude
-- Modules included in this library but not exported.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
-- Directories containing source files.
hs-source-dirs: src
executable my-app
import: shared-properties
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
build-depends: my-app
ghc-options:
-- enable parallelism
-threaded
"-with-rtsopts=-N"
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
-- Directories containing source files.
hs-source-dirs: app
test-suite my-app-test
import: shared-properties
-- The interface type and version of the test suite.
type: exitcode-stdio-1.0
-- The directory where the test specifications are found.
hs-source-dirs: test
-- The entrypoint to the test suite.
main-is: MyLibTest.hs