aboutsummaryrefslogtreecommitdiffstats
path: root/backend/backend.cabal
blob: ac82e259efa140367b86ea86f7e643ee0da2a3eb (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
67
68
69
70
71
72
73
74
75
76
77
cabal-version: 3.4
name:          backend
version:       0.1.0.0
license:       BSD-3-Clause
license-file:  LICENSE
maintainer:    aforemny@posteo.de
author:        Alexander Foremny
build-type:    Simple

library
    exposed-modules:
        ACMS.API.REST
        ACMS.API.REST.Collection

    hs-source-dirs:     lib
    default-language:   GHC2021
    default-extensions:
        CPP BlockArguments LambdaCase OverloadedStrings ViewPatterns
        OverloadedRecordDot NoFieldSelectors MultiWayIf

    ghc-options:        -Wall -threaded
    build-depends:
        aeson,
        base,
        bytestring,
        exceptions,
        miso,
        text,
        utf8-string

    if arch(javascript)
        build-depends: ghcjs-base

    else
        build-depends: http-conduit

executable backend
    main-is:            Main.hs
    hs-source-dirs:     app
    default-language:   GHC2021
    default-extensions:
        BlockArguments LambdaCase OverloadedStrings ViewPatterns
        OverloadedRecordDot NoFieldSelectors MultiWayIf

    ghc-options:        -Wall -threaded
    build-depends:
        aeson,
        astore,
        attoparsec,
        autotypes,
        base,
        bytestring,
        common,
        containers,
        directory,
        exceptions,
        filepath,
        gitlib,
        gitlib-libgit2,
        hinotify,
        hlibgit2,
        http-types,
        mtl,
        optparse-applicative,
        random,
        safe,
        split,
        stm,
        tagged,
        text,
        utf8-string,
        uuid,
        wai,
        warp

    if arch(javascript)
        buildable: False