aboutsummaryrefslogtreecommitdiffstats
path: root/gsa-parser.cabal
blob: b3600725c6e2f2c4e5238dc51ca8f68d361f21a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cabal-version:   2.4
name:            gsa-parser
version:         0
license:         BSD-3-Clause
build-type:      Simple
license-file:    LICENSE
author:          Yann Herklotz
maintainer:      Yann Herklotz <git@yannherklotz.com>
copyright:       2021 Yann Herklotz
tested-with:     GHC ==8.6.3 || ==8.8.3 || ==8.10.5
extra-doc-files:
  CHANGELOG.md
  README.md

-- category:
-- description:     description
-- synopsis:        one-line synopsis
-- homepage:        https://github.com/FIXME/gsa-parser#readme
-- source-repository head
--   type:     git
--   location: git://github.com/FIXME/gsa-parser.git

common common-options
  build-depends:    base >=4.9 && <5
  default-language: Haskell2010
  ghc-options:
    -Wall -Wcompat -Widentities -Wincomplete-uni-patterns
    -Wincomplete-record-updates -Wredundant-constraints
    -fhide-source-paths -Wpartial-fields

library
  import:          common-options
  hs-source-dirs:  src
  exposed-modules: Lib
  build-depends:
    , containers
    , mtl

executable gsa-parser-exe
  import:         common-options
  hs-source-dirs: app
  main-is:        Main.hs
  build-depends:  gsa-parser
  ghc-options:    -threaded -rtsopts -with-rtsopts=-N

test-suite gsa-parser-test
  import:         common-options
  type:           exitcode-stdio-1.0
  hs-source-dirs: test
  main-is:        Spec.hs
  build-depends:
    , hspec
    , HUnit
    , gsa-parser
    , QuickCheck

  ghc-options:    -threaded -rtsopts -with-rtsopts=-N

benchmark gsa-parser-bench
  import:         common-options
  type:           exitcode-stdio-1.0
  hs-source-dirs: bench
  main-is:        Main.hs
  build-depends:
    , criterion
    , gsa-parser

  ghc-options:    -threaded -rtsopts -with-rtsopts=-N