aboutsummaryrefslogtreecommitdiff
path: root/chelleport.cabal
blob: 7e88b5bcd49dc6df5fdd2c278713cde184ee41dd (plain) (blame)
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
cabal-version:   3.0

name:            chelleport
version:         0.1.0.0
license:         MIT
author:          Akshay Nair <phenax5@gmail.com>
maintainer:      Akshay Nair <phenax5@gmail.com>
build-type:      Simple
synopsis:        Mouse control
description:     Mouse control

common common-config
  default-extensions:
    OverloadedStrings,
    LambdaCase,
    QuasiQuotes,
    TemplateHaskell,
    TupleSections,
    NamedFieldPuns
  default-language: Haskell2010
  build-depends:
    base,
    text,
    containers

common warnings
  ghc-options:
    -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns
    -Wunused-foralls -Wextra -Wno-unused-do-bind -Wname-shadowing
    -fwarn-tabs -fprint-explicit-foralls -fprint-explicit-kinds

executable chelleport
  import: common-config, warnings
  hs-source-dirs: bin
  main-is: Main.hs
  build-depends: lib-chelleport
  -- other-modules:

library lib-chelleport
  import: common-config, warnings
  hs-source-dirs: src
  build-depends:
    sdl2 == 2.5.5.0,
    sdl2-ttf == 2.1.3
  exposed-modules:
    Chelleport

test-suite specs
  import: common-config
  type: exitcode-stdio-1.0
  hs-source-dirs: specs
  main-is: Main.hs
  other-modules:
    Specs.ParserSpec,
    Specs.SerializerSpec,
    Specs.TransformerSpec
  build-depends:
    lib-chelleport,
    neat-interpolation,
    pretty-simple,
    hspec