aboutsummaryrefslogtreecommitdiff
path: root/game.cabal
blob: 513a37ec92ad9033aac1a4fe73ebfdd720128e30 (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
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/

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

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


library
    exposed-modules:
        Game
        Game.Map
        Game.Sprites
        Game.Entities
        Game.Controller
        Game.Utils
    build-depends:
        base
        , mtl
        , text >= 1.1.0.0 && < 2.1
        , sdl2
        , sdl2-image
        , json

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

executable game
    main-is:          Main.hs
    build-depends:
        base
        , game
    ghc-options:      -Wall -Werror -O2

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