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

ghc-options:
  - -Wall
  - -Werror
  # - -fprof-auto

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
  - fast-logger
  - errors
Yuanle Song's avatar
Yuanle Song committed

library:
  source-dirs: src

executables:
  rd-api:
    source-dirs:      api
    main:             Main.hs
    dependencies:
    - reliable-download
    ghc-options:
    - -threaded
Yuanle Song's avatar
Yuanle Song committed
  rd:
    source-dirs:      client
    main:             Main.hs
    dependencies:
    - reliable-download    # I only need the Type module
    - http-conduit
    - http-client
    - http-types
    - retry
    - socket
    - io-thread-pool
Yuanle Song's avatar
Yuanle Song committed
    - tinylog
    ghc-options:
    - -threaded
Yuanle Song's avatar
Yuanle Song committed

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