tickLeisteServer/package.yaml
2022-01-02 23:59:36 +01:00

90 lines
2 KiB
YAML

name: tickLeisteServer
version: 0.1.0.0
github: "githubuser/tickLeisteServer"
license: BSD3
author: "Author name here"
maintainer: "example@example.com"
copyright: "2020 Author name here"
extra-source-files:
- README.md
- ChangeLog.md
# Metadata used when publishing your package
# synopsis: Short description of your package
# category: Web
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/githubuser/tickLeisteServer#readme>
flags:
http:
description: Build with http support
manual: true
default: true
https:
description: Build with https support
manual: true
default: true
dependencies:
- base >= 4.7 && < 5
- tickLeiste
- tickLeiste-aeson
- aeson
- uuid
- text
- websockets
- bytestring
- containers
- wai
- wai-websockets
# only used for the error message on missing webclient
- http-types
- tomland
# if we want more interaction with tomland errors this might
# be practical (not used atm, there are functions to Either)
#- validation-selective
- optparse-applicative
- co-log
- unliftio-core
- unliftio
- mtl
when:
- condition: flag(http)
dependencies:
- warp
- condition: flag(https)
dependencies:
- warp-tls
- warp
executables:
tickLeisteServer:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
when:
- condition: flag(http)
cpp-options:
- -DHTTP_SUPPORT
- condition: flag(https)
cpp-options:
- -DHTTPS_SUPPORT
tests:
tickLeisteServer-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
# dependencies:
# - tickLeisteServer