aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/frontend.cabal
blob: 263b26e8bafc8a57841a42bc7781e4a792dae074 (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
cabal-version:   3.4
name:            frontend
version:         0.1.0.0
license:         BSD-3-Clause
license-file:    LICENSE
maintainer:      aforemny@posteo.de
author:          Alexander Foremny
build-type:      Simple
extra-doc-files: CHANGELOG.md

executable frontend
    main-is:            Main.hs
    hs-source-dirs:     app
    other-modules:
        Api
        Form
        Form.Input
        Form.Internal
        Page
        Page.ListCollection
        Route
        Schema

    default-language:   GHC2021
    default-extensions:
        CPP OverloadedStrings RecordWildCards DeriveAnyClass
        DuplicateRecordFields LambdaCase OverloadedRecordDot
        NoFieldSelectors ViewPatterns QuasiQuotes BlockArguments

    ghc-options:
        -Wall -fno-warn-name-shadowing -fno-warn-ambiguous-fields
        -fno-warn-orphans

    build-depends:
        aeson,
        attoparsec,
        base,
        bytestring,
        containers,
        data-default,
        miso,
        neat-interpolation,
        text,
        utf8-string

    if !arch(javascript)
        build-depends: jsaddle-warp

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

    else
        build-depends: http-conduit