addressbook/addressbook.cabal
2021-10-29 22:09:43 +03:00

108 lines
3.2 KiB
Plaintext

cabal-version: 2.4
-- Initial package description 'addressbook.cabal' generated by 'cabal
-- init'. For further documentation, see
-- http://haskell.org/cabal/users-guide/
name: addressbook
version: 0.1.0.0
-- synopsis:
-- description:
-- bug-reports:
license: BSD-3-Clause
license-file: LICENSE
author: Mats Rauhala
maintainer: mats.rauhala@iki.fi
-- copyright:
-- category:
extra-source-files: CHANGELOG.md
common deps
build-depends: base >=4.13.0.0 && <4.15
library
import: deps
exposed-modules: MyLib
, Data.Trie
, Data.Email.Header
, Data.Email
, Control.Addressbook.Streaming
, Control.Addressbook.Query
-- other-modules:
-- other-extensions:
default-extensions: OverloadedStrings
LambdaCase
build-depends: attoparsec
, mtl
, conduit
, conduit-extra
, bytestring
, lens
, text
, vector
, containers
, filepath
, parallel
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
executable addressbook
import: deps
main-is: Main.hs
-- other-modules:
-- other-extensions:
build-depends: addressbook
, optparse-applicative
, text
hs-source-dirs: app
default-language: Haskell2010
ghc-options: -Wall -threaded -eventlog
test-suite addressbook-test
import: deps
default-language: Haskell2010
default-extensions: OverloadedStrings
LambdaCase
other-modules: Test.Data.Email.Header
, Test.Data.Email
, Test.Data.Trie
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: MyLibTest.hs
build-depends: addressbook
, tasty
, tasty-hedgehog
, tasty-hunit
, HUnit
, hedgehog
, bytestring
, hedgehog-corpus
, text
, vector
, conduit
, conduit-extra
, containers
ghc-options: -Wall
-- I know there's a benchmark type, but haskellPackages.shellFor doesn't seem
-- to support it and I don't have the time to figure it out
executable addressbook-bench
import: deps
default-language: Haskell2010
default-extensions: OverloadedStrings
LambdaCase
-- other-modules: Test.Data.Email.Header
-- , Test.Data.Email
-- , Test.Data.Trie
hs-source-dirs: bench
main-is: Bench.hs
build-depends: addressbook
, criterion
, hedgehog-corpus
, bytestring
, containers
ghc-options: -Wall