Skip to content
package.yaml 1.94 KiB
Newer Older
Yuanle Song's avatar
Yuanle Song committed
name:                reliable-download
Yuanle Song's avatar
Yuanle Song committed
synopsis:            provide reliable download service via HTTP
description:         reliable-download web application and cli tool
Yuanle Song's avatar
Yuanle Song committed
homepage:            "https://gitlab.emacsos.com/sylecn/reliable-download"
bug-reports:         "https://gitlab.emacsos.com/sylecn/reliable-download/issues"
Yuanle Song's avatar
Yuanle Song committed
license:             GPL-3
author:              Yuanle Song
maintainer:          sylecn@gmail.com
copyright:           "Copyright: (c) 2018, 2019, 2022, 2024 Yuanle Song"
Yuanle Song's avatar
Yuanle Song committed
category:            Utilities
extra-source-files:
- README.md

ghc-options:
  - -Wall
  - -Werror
  - -O2
Yuanle Song's avatar
Yuanle Song committed
default-extensions:
  - OverloadedStrings
Yuanle Song's avatar
Yuanle Song committed
  - ScopedTypeVariables
Yuanle Song's avatar
Yuanle Song committed

dependencies:
  - base >= 4.7 && < 5
Yuanle Song's avatar
Yuanle Song committed
  # project specific
Yuanle Song's avatar
Yuanle Song committed
  - scotty
Yuanle Song's avatar
Yuanle Song committed
  - wai
  - wai-middleware-static
Yuanle Song's avatar
Yuanle Song committed
  - hedis
Yuanle Song's avatar
Yuanle Song committed
  - cryptohash
  - byteable
Yuanle Song's avatar
Yuanle Song committed
  - ansi-wl-pprint
  # file system
  - directory
Yuanle Song's avatar
Yuanle Song committed
  # data types
  - bytestring
  - text
  - unordered-containers
Yuanle Song's avatar
Yuanle Song committed
  - aeson
  - extra
  # general utils
  - transformers
Yuanle Song's avatar
Yuanle Song committed
  - optparse-applicative
Yuanle Song's avatar
Yuanle Song committed
  - formatting
  - tinylog
Yuanle Song's avatar
Yuanle Song committed
  - errors
Yuanle Song's avatar
Yuanle Song committed

library:
  source-dirs: lib
Yuanle Song's avatar
Yuanle Song committed

executables:
  rd-api:
    source-dirs: rd-api
    main: RD.Server.Cli.Main
Yuanle Song's avatar
Yuanle Song committed
    dependencies:
    - reliable-download
    ghc-options:
    - -threaded
    - -O2
Yuanle Song's avatar
Yuanle Song committed
  rd:
    source-dirs: rd
    main: RD.Client.Main
    dependencies:
    - reliable-download
    - io-thread-pool
    - http-conduit
    - http-client
    - retry
    - socket
    ghc-options:
    - -threaded
    - -O2
  maybet:
    source-dirs: misc/maybet
    ghc-options:
    - -threaded
  logtest:
    source-dirs: misc/logtest
    ghc-options:
    - -threaded
Yuanle Song's avatar
Yuanle Song committed

tests:
  all-tests:
    source-dirs:
    - test
Yuanle Song's avatar
Yuanle Song committed
    dependencies:
    - reliable-download
    - hspec
    - hspec-wai
    - http-types
Yuanle Song's avatar
Yuanle Song committed
    - wai-extra
    - unordered-containers
    - binary