summaryrefslogtreecommitdiff
path: root/erebos-webapp.cabal
blob: 3c91fc1bf76e82a5131610c26d9caafd103c31b7 (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
cabal-version:      3.0
name:               erebos-webapp
version:            0.1.0.0
-- synopsis:
-- description:
homepage:           https://erebosprotocol.net
license:            GPL-3.0-only
license-file:       LICENSE
author:             Roman Smrž
maintainer:         roman.smrz@seznam.cz
-- copyright:
category:           Web
build-type:         Simple
extra-doc-files:    CHANGELOG.md
-- extra-source-files:

common warnings
    ghc-options: -Wall

executable erebos-webapp
    import:           warnings
    ghc-options:
        -no-hs-main
        -optl-mexec-model=reactor
        -optl-Wl,--export=hs_init,--export=setup
        -fdefer-typed-holes

    main-is:          Main.hs
    other-modules:
        JavaScript
        Storage.IndexedDB
        WebSocket

    default-extensions:
        DefaultSignatures
        ExistentialQuantification
        FlexibleContexts
        FlexibleInstances
        FunctionalDependencies
        GeneralizedNewtypeDeriving
        ImportQualifiedPost
        LambdaCase
        MultiWayIf
        OverloadedStrings
        RankNTypes
        RecordWildCards
        ScopedTypeVariables
        StandaloneDeriving
        TypeOperators
        TupleSections
        TypeApplications
        TypeFamilies
        TypeFamilyDependencies

    -- other-extensions:
    build-depends:
        base ^>= { 4.21 },
        blaze-html ^>= { 0.9 },
        bytestring ^>= { 0.12 },
        erebos ^>= { 0.1.8 },
        ghc-experimental ^>= { 9.1201, 9.1202 },
        mtl ^>= { 2.3 },
        text ^>= { 2.1 },
        time ^>= { 1.14 },

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