summaryrefslogtreecommitdiff
path: root/fournilsipma-server.cabal
blob: f38a933adc94268b160ba5924c7354e7533f291c (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
-- This file has been generated from package.yaml by hpack version 0.18.1.
--
-- see: https://github.com/sol/hpack

name:           fournilsipma-server
version:        0.1.0
synopsis:       raise funds by yourself
description:    Please see README.md
category:       Utility
homepage:       https://git.gueux.org/fournilsipma-server.git
author:         Félix Sipma
maintainer:     felix.sipma@no-log.org
copyright:      2018 Félix Sipma
license:        AGPL-3
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10

source-repository head
  type: git
  location: https://git.gueux.org/fournilsipma-server.git

flag dev
  description: Turn on development settings.
  manual: False
  default: False

library
  hs-source-dirs:
      src
  default-extensions: NoImplicitPrelude
  build-depends:
      aeson
    , base >=4.7 && <5
    , bytestring
    , formatting
    , monad-control
    , monad-logger
    , network
    , path
    , protolude
    , servant-server
    , servant
    , text
    , wai
    , wai-extra
    , warp
  exposed-modules:
      Shop.API
      Shop.Config
      Shop.Handler
      Shop.Server
      Shop.Types
  other-modules:
      Paths_fournilsipma_server
  default-language: Haskell2010

executable fournilsipma-server
  main-is: Main.hs
  hs-source-dirs:
      app
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base
    , fournilsipma-server
  default-language: Haskell2010

test-suite fournilsipma-server-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base
    , fournilsipma-server
    , hspec
    , hspec-wai
    , hspec-wai-json
    , aeson
  default-language: Haskell2010