-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwai-secure-cookies.cabal
75 lines (69 loc) · 2.66 KB
/
wai-secure-cookies.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
cabal-version: 3.0
name: wai-secure-cookies
version: 0.1.0.8
synopsis: WAI middleware to automatically encrypt and sign cookies
description: wai-secure-cookies is a WAI middleware to automatically encrypt and sign cookies w/ specified keys, and a command line tool to generate those keys
homepage: https://github.com/habibalamin/wai-secure-cookies
license: MIT
license-file: LICENSE
author: Habib Alamin
maintainer: [email protected]
copyright: © حبيب الأمين 2023
category: Web
build-type: Simple
extra-source-files: README.md
flag cryptonite
description: Enable use of cryptonite, instead of crypton fork
default: False
library
hs-source-dirs: src
default-language: Haskell2010
exposed-modules: Cookie.Secure.Middleware
other-modules: Cookie.Secure
, Crypto.Encryption
, Crypto.Verification
, Extension.Either
, Extension.ByteString
build-depends: base >= 4.7 && < 5
, wai >= 3.2 && < 4
, bytestring >= 0.10 && < 0.12
, memory >= 0.14 && < 0.19
, random >= 1.1 && < 1.3
, split >= 0.2 && < 0.3
, http-types >= 0.12.1 && < 0.13
if flag(cryptonite)
-- all versions from 0.24
build-depends: cryptonite >= 0.24 && <= 0.30
else
build-depends: crypton >= 0.31 && < 1
test-suite wai-secure-cookies-test
hs-source-dirs: spec
default-language: Haskell2010
other-modules: MiddlewareSpec
type: exitcode-stdio-1.0
main-is: Main.hs
build-tool-depends: hspec-discover:hspec-discover
build-depends: base
, bytestring
, wai
, wai-extra >= 3 && < 4
, http-types
, wai-secure-cookies
, hspec >= 2.6 && < 2.12
, hspec-expectations >= 0.8.2 && < 0.9
, hspec-wai >= 0.9.1 && < 0.12
ghc-options: -threaded -rtsopts -with-rtsopts=-N
executable waicookie-genkey
hs-source-dirs: keygensrc
default-language: Haskell2010
main-is: Main.hs
build-depends: base
, bytestring
, memory
if flag(cryptonite)
build-depends: cryptonite
else
build-depends: crypton
source-repository head
type: git
location: https://github.com/habibalamin/wai-secure-cookies