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:
        Effect
        Form
        Form.Input
        Form.Internal
        Page
        Page.EditValue
        Page.ListCollection
        Page.NewCollection
        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:
        acms,
        aeson,
        attoparsec,
        base,
        bytestring,
        containers,
        data-default,
        exceptions,
        miso,
        mtl,
        neat-interpolation,
        safe,
        scientific,
        split,
        text,
        time,
        utf8-string

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

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

    else
        build-depends: http-conduit