packages feed

http-interchange-0.3.2.1: http-interchange.cabal

cabal-version:      3.0
name:               http-interchange
version:            0.3.2.1
license:            BSD-3-Clause
license-file:       LICENSE
author:             Andrew Martin
maintainer:         amartin@layer3com.com
homepage:           https://github.com/byteverse/http-interchange
bug-reports:        https://github.com/byteverse/http-interchange/issues
synopsis:           Types and serialization for HTTP
description:
  Types and serialization for HTTP. This includes things like request
  line, status line, and headers. There is also a collection type
  for headers that supports fast, case-insensitive lookup.

copyright:          2023 Andrew Martin
category:           Data
build-type:         Simple
extra-doc-files:
  CHANGELOG.md
  README.md

extra-source-files:
  golden/request/*.json
  golden/request/*.output
  golden/response/*.input
  golden/response/*.output

tested-with:        GHC ==9.4.8 || ==9.6.3 || ==9.8.1

common build-settings
  default-language: GHC2021
  ghc-options:      -Wall -Wunused-packages

library
  import:          build-settings
  ghc-options:     -O2
  exposed-modules:
    Http.Bodied
    Http.Header
    Http.Headers
    Http.Request
    Http.Response
    Http.Types

  build-depends:
    , base        >=4.16.3.0 && <5
    , bytebuild   >=0.3.10
    , byteslice   >=0.2.11
    , bytesmith   >=0.3.10
    , contiguous  >=0.6.3
    , primitive   >=0.9.0
    , text        >=2.0

  hs-source-dirs:  src

test-suite test
  import:         build-settings
  type:           exitcode-stdio-1.0
  hs-source-dirs: test
  main-is:        Main.hs
  build-depends:
    , aeson             >=2.1
    , base              >=4.16.3.0
    , byteslice
    , bytestring        >=0.11
    , filepath
    , http-interchange
    , pretty-show       >=1.10
    , primitive         >=0.9.0
    , tasty             >=1.4.3
    , tasty-golden      >=2.3.5

source-repository head
  type:     git
  location: git://github.com/byteverse/http-interchange.git