cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack

name:           http-link-header
version:        1.2.2
x-revision:     1
synopsis:       HTTP Link header parser/writer
description:    Library for the HTTP Link header as specified in RFC 5988 "Web Linking"
category:       Web
homepage:       https://codeberg.org/valpackett/http-link-header
bug-reports:    https://codeberg.org/valpackett/http-link-header/issues
author:         Val Packett
maintainer:     val@packett.cool
copyright:      2014-2025 Val Packett <val@packett.cool>
license:        PublicDomain
license-file:   UNLICENSE
build-type:     Simple
extra-source-files:
    README.md

source-repository head
  type: git
  location: https://codeberg.org/valpackett/http-link-header.git

library
  exposed-modules:
      Network.HTTP.Link
      Network.HTTP.Link.Parser
      Network.HTTP.Link.Types
      Network.HTTP.Link.Writer
  other-modules:
      Paths_http_link_header
  hs-source-dirs:
      library
  ghc-options: -Wall
  build-depends:
      attoparsec
    , base >=4.3 && <5
    , bytestring
    , errors
    , http-api-data
    , network-uri
    , text <2.1.2
  default-language: Haskell2010

test-suite tests
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Network.HTTP.Link.ParserSpec
      Network.HTTP.Link.WriterSpec
      Network.HTTP.LinkSpec
      Paths_http_link_header
  hs-source-dirs:
      test-suite
  ghc-options: -threaded -Wall
  build-depends:
      QuickCheck
    , attoparsec
    , base >=4.3 && <5
    , bytestring
    , errors
    , hspec
    , hspec-attoparsec
    , http-api-data
    , http-link-header
    , network-uri
    , text <2.1.2
  default-language: Haskell2010

benchmark benchmarks
  type: exitcode-stdio-1.0
  main-is: Bench.hs
  other-modules:
      ParserBench
      WriterBench
      Paths_http_link_header
  hs-source-dirs:
      benchmark
  ghc-options: -threaded -Wall
  build-depends:
      attoparsec
    , base >=4.3 && <5
    , bytestring
    , criterion
    , directory
    , errors
    , http-api-data
    , http-link-header
    , network-uri
    , text <2.1.2
    , transformers
  default-language: Haskell2010