packages feed

wai-cryptocookie-0.1: wai-cryptocookie.cabal

cabal-version: 2.4
name: wai-cryptocookie
version: 0.1
license: Apache-2.0
license-file: LICENSE
extra-source-files: README.md CHANGELOG.md
author: Renzo Carbonara
maintainer: renλren.zone
copyright: Renzo Carbonara, 2024
category: Web
build-type: Simple
synopsis: Encrypted cookies for WAI
description: Encrypted cookies for WAI
homepage: https://github.com/k0001/hs-wai-cryptocookie
bug-reports: https://github.com/k0001/hs-wai-cryptocookie/issues
tested-with: GHC == 9.8.1

common basic
  default-language: GHC2021
  build-depends: base == 4.*
  default-extensions:
    BlockArguments
    DataKinds
    DerivingStrategies
    DuplicateRecordFields
    LambdaCase
    OverloadedRecordDot
    OverloadedStrings
    TypeFamilies
    ViewPatterns


library
  import: basic
  ghc-options: -O2 -Wall
  hs-source-dirs: lib
  exposed-modules:
    Wai.CryptoCookie
    Wai.CryptoCookie.Encoding
    Wai.CryptoCookie.Encryption
  other-modules:
    Wai.CryptoCookie.Encryption.AEAD_AES_128_GCM_SIV
    Wai.CryptoCookie.Encryption.AEAD_AES_256_GCM_SIV
    Wai.CryptoCookie.Middleware
  build-depends:
    aeson,
    binary,
    bytestring,
    cookie,
    crypton,
    http-types,
    memory,
    stm,
    text,
    time,
    wai,

test-suite test
  import: basic
  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is: Main.hs
  ghc-options: -threaded -with-rtsopts=-N
  build-depends:
    aeson,
    binary,
    directory,
    filepath,
    http-types,
    wai,
    wai-cryptocookie,
    wai-extra,
    stm,