aboutsummaryrefslogtreecommitdiffstats
path: root/gsa-parser.cabal
blob: 0dec6d2eb9f7db1dc9acf124c65636eb82094e76 (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
69
70
71
72
73
74
75
76
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
  default-extensions: OverloadedStrings

library
  import:          common-options
  hs-source-dirs:  src
  exposed-modules: GSA
                 , GSA.Common
                 , GSA.Types
                 , GSA.Parser
                 , GSA.Printer
  build-depends:
    , containers
    , mtl
    , megaparsec
    , text

executable gsa-parser-exe
  import:         common-options
  hs-source-dirs: app
  main-is:        Main.hs
  build-depends:  gsa-parser
                , text
  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