packages feed

senbei-1.0.0: senbei.cabal

cabal-version: 3.8
name: senbei
version: 1.0.0
build-type: Simple
extra-source-files: README.md
category: Web
author: rose@empty.town
maintainer: rose@empty.town
extra-doc-files: CHANGELOG.md, README.md
synopsis: A safe HTTP cookie library.
license: MIT
license-file: LICENSE.md
description: A lightweight HTTP cookie library providing serialization and deserialization of HTTP Set-Cookie and Cookie headers. It uses strong typing to make illegal states unrepresentable and attempts to conform to appropriate RFCs.

source-repository head
  type: git
  location: https://github.com/ix/senbei

common ghc-flags
  ghc-options: -Wall

common extensions
  default-extensions:
    PatternSynonyms
    RecordWildCards
    StrictData
    TypeFamilies
    ViewPatterns

library
  import: ghc-flags, extensions
  default-language: GHC2024
  hs-source-dirs: src

  exposed-modules:
    Senbei

  build-depends:
    , base >= 4.20.2 && < 4.21
    , bytestring >= 0.12.2 && < 0.13
    , text >= 2.1.3 && < 2.2
    , time >= 1.12.2 && < 1.13

test-suite test
    import: ghc-flags, extensions
    default-language: GHC2024
    main-is: test/tests.hs
    build-depends:
      , base
      , hspec
      , senbei
      , text
      , time
      , QuickCheck