-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathservant-polysemy.cabal
125 lines (117 loc) · 4.72 KB
/
servant-polysemy.cabal
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
cabal-version: 2.4
name: servant-polysemy
version: 0.1.4
synopsis: Utilities for using servant in a polysemy stack
description: It's possible to use servant and polysemy together without this library, but it's not easy. This library makes it easy.
homepage: https://github.com/AJChapman/servant-polysemy#readme
bug-reports: https://github.com/AJChapman/servant-polysemy/issues
license: BSD-3-Clause
license-file: LICENSE
author: Alex Chapman
maintainer: [email protected]
copyright: 2020 Alex Chapman
category: Servant, Web
build-type: Simple
extra-source-files: CHANGELOG.md
README.md
extra-doc-files: example/Server.hs
example/ServerGeneric.hs
example/ServerWithSwagger.hs
example/Client.hs
tested-with: GHC == 8.8.4
, GHC == 8.10.1
, GHC == 9.0.2
, GHC == 9.2.4
common deps
build-depends: base >= 4.11.0.0 && < 5
, deepseq >= 1.4.3.0 && < 1.5
, http-client >= 0.6.4.1 && < 0.8
, http-client-tls ^>= 0.3.5.3
, mtl ^>= 2.2.2
, polysemy >= 1.3.0.0 && < 1.8
, polysemy-plugin >= 0.2.4.0 && < 0.5
, polysemy-zoo >= 0.7.0.1 && < 0.9
, servant-server >= 0.16 && < 0.20
, servant-client >= 0.16 && < 0.20
, wai >= 3.2.1.2 && < 3.4
, warp >= 3.2.22 && < 3.4
-- Warnings list list taken from
-- https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3
-- Enable all warnings with -Weverything, then disable the ones we
-- don’t care about
default-language: Haskell2010
ghc-options: -Weverything
-Wno-all-missed-specialisations
-Wno-implicit-prelude
-Wno-missed-specialisations
-Wno-missing-exported-signatures
-Wno-missing-import-lists
-Wno-missing-local-signatures
-Wno-monomorphism-restriction
-Wno-missing-deriving-strategies
-Wno-safe
-Wno-unsafe
-fprint-potential-instances
-fplugin=Polysemy.Plugin
if impl(ghc >= 8.10)
ghc-options: -Wno-prepositive-qualified-module
-Wno-missing-safe-haskell-mode
library
import: deps
hs-source-dirs: src
default-language: Haskell2010
exposed-modules: Servant.Polysemy.Client
Servant.Polysemy.Server
executable example-server
import: deps
main-is: Server.hs
autogen-modules: Paths_servant_polysemy
other-modules: Paths_servant_polysemy
hs-source-dirs: example
default-language: Haskell2010
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N
build-depends: servant-polysemy
, lens
executable example-server-generic
import: deps
main-is: ServerGeneric.hs
autogen-modules: Paths_servant_polysemy
other-modules: Paths_servant_polysemy
hs-source-dirs: example
default-language: Haskell2010
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N
build-depends: servant-polysemy
, lens
, servant
executable example-server-with-swagger
import: deps
main-is: ServerWithSwagger.hs
autogen-modules: Paths_servant_polysemy
other-modules: Paths_servant_polysemy
hs-source-dirs: example
default-language: Haskell2010
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N
build-depends: servant-polysemy
, lens
, servant-swagger ^>= 1.1
, servant-swagger-ui ^>= 0.3
, swagger2 >= 2.4 && < 2.9
, text ^>= 1.2.3.1
executable example-client
import: deps
main-is: Client.hs
hs-source-dirs: example
default-language: Haskell2010
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N
build-depends: servant-polysemy
source-repository head
type: git
location: https://github.com/AJChapman/servant-polysemy