aboutsummaryrefslogtreecommitdiff
path: root/game.cabal
blob: 98524156921d1396a8d35db5161b95ac79ef33f3 (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
cabal-version:      2.4
name:               game
version:            0.1.0.0

synopsis:           A gamedev experiment (2D platform game).
homepage:           https://git.usebox.net/space-plat-hs/about/

license:            MIT
license-file:       LICENSE
author:             Juan J. Martinez
maintainer:         jjm@usebox.net

extra-source-files: CHANGELOG.md, README.md, LICENSE


library
    exposed-modules:
        Game
        Game.State
        Game.Hud
        Game.Map
        Game.Sprites
        Game.BitmapFont
        Game.Entities
        Game.Entities.Types
        Game.Entities.Const
        Game.Entities.Common
        Game.Entities.Player
        Game.Entities.Effect
        Game.Entities.Pickup
        Game.Entities.Slime
        Game.Entities.Robot
        Game.Controller
        Game.Utils
    build-depends:
        base
        , text >= 1.1.0.0 && < 2.1
        , vector>=0.10.9.0 && <0.14
        , containers
        , sdl2
        , sdl2-image
        , json

    ghc-options:      -Wall -Werror -O2 -j
    default-extensions:
        OverloadedStrings
        OverloadedRecordDot
        DuplicateRecordFields
        NoFieldSelectors
    hs-source-dirs:   src
    default-language: Haskell2010

executable game
    main-is:          Main.hs
    build-depends:
        base
        , game
    ghc-options:      -Wall -Werror -with-rtsopts=--nonmoving-gc -O2

    hs-source-dirs:   app
    default-language: GHC2021