aboutsummaryrefslogtreecommitdiff
path: root/micro2.cabal
blob: 30bec213883d73e46b4f9b0f9403918dd6d4a5a2 (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
cabal-version:      2.4
name:               micro2
version:            0.1.0.0

synopsis: Micro2 toy programming language
homepage: https://git.usebox.net/micro2-lang/about/

license:            GPL-3.0-or-later
author:             Juan J. Martinez
maintainer:         jjm@usebox.net

copyright: (c) 2022 Juan J. Martinez
extra-source-files:
    CHANGELOG.md
    , README.md
    , COPYING

executable micro2
    main-is:          Main.hs
    other-modules:
        Ast
        Lexer
        Parser
        Error
        Env
        Compiler
    build-depends:
        base ^>= 4.16.1.0
        , parsec ^>= 3.1.15.1
        , mtl ^>= 2.2.2
        , containers ^>= 0.6.5.1
    hs-source-dirs:   src
    default-language: Haskell2010

library
    exposed-modules:
        Ast
        Lexer
        Parser
        Error
        Env
        Compiler
    build-depends:
        base ^>= 4.16.1.0
        , parsec ^>= 3.1.15.1
        , mtl ^>= 2.2.2
        , containers ^>= 0.6.5.1
    hs-source-dirs:   src
    default-language: Haskell2010

test-suite tests
    type: exitcode-stdio-1.0
    main-is: Main.hs
    other-modules:
        Language
    build-depends:
        base ^>= 4.16.1.0
        , HUnit
        , micro2
    hs-source-dirs:   test
    default-language: Haskell2010