aboutsummaryrefslogtreecommitdiff
path: root/micro.cabal
blob: ec4cac6e34d288271f10ed700d1c567629f7f589 (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
63
64
65
66
cabal-version:      2.4
name:               micro
version:            0.1.0.0

synopsis: Micro 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

library
    exposed-modules:
        Micro
        Micro.Ast
        Micro.Lexer
        Micro.Parser
        Micro.Error
        Micro.Env
        Micro.Compiler
        Micro.Asm.Sdcc
    build-depends:
        base
        , parsec
        , mtl
        , containers
    hs-source-dirs:   src
    ghc-options:      -Wall -Wno-name-shadowing -Werror -O2 -j
    default-extensions:
        OverloadedStrings
        OverloadedRecordDot
        DuplicateRecordFields
        NoFieldSelectors
    default-language:  GHC2021

test-suite tests
    type: exitcode-stdio-1.0
    main-is: Main.hs
    other-modules:
        Language
    build-depends:
        base
        , parsec
        , mtl
        , containers
        , HUnit
        , micro
    hs-source-dirs:   test
    default-language: GHC2021

executable micro
    main-is:          Main.hs
    build-depends:
        base
        , containers
        , mtl
        , micro
    hs-source-dirs:   app
    default-language: GHC2021