summaryrefslogtreecommitdiff
path: root/scratchy.cabal
blob: 95588419466917ac6fe1c9742ad9dbaf406cb215 (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
cabal-version:      3.0
name:               scratchy
version:            1.1.0.1
license:            NONE
author:             Mikkel Thestrup <mithe24@student.sdu.dk>
maintainer:         Mikkel Thestrup <mithe24@student.sdu.dk>
category:           Game
build-type:         Simple
extra-doc-files:    CHANGELOG.md

common warnings
    ghc-options: -Wall

executable scratchy
    import:           warnings
    main-is:          Main.hs
    other-modules:    Scratchy
                    , Scratchy.Syntax
                    , Scratchy.World
                    , Example.CircleThatMoves
                    , Snakey.TwoSnakes

    default-extensions: RecordWildCards
                      , DeriveFunctor
                      , LambdaCase

    build-depends:    base ^>=4.18.0.0
                    , gloss

    hs-source-dirs:   app

    default-language: Haskell2010

test-suite scratchy-tests
    import:           warnings
    type:             exitcode-stdio-1.0
    main-is:          Tests.hs
    other-modules:    Scratchy.Syntax
                    , Scratchy.World

    default-extensions: RecordWildCards
                      , DeriveFunctor
                      , LambdaCase
    build-depends:    base ^>=4.18.0.0
                    , gloss
                    , HUnit
    hs-source-dirs:   test, app
    default-language: Haskell2010