name:            http-link-header
version:         1.0.2
x-revision: 3
synopsis:        A parser and writer for the HTTP Link header as specified in RFC 5988 "Web Linking".
description:     https://codeberg.org/valpackett/http-link-header
category:        Web
homepage:        https://codeberg.org/valpackett/http-link-header
author:          Val Packett
copyright:       2014-2016 Val Packett <val@packett.cool>
maintainer:      val@packett.cool
license:         PublicDomain
license-file:    UNLICENSE
build-type:      Simple
cabal-version:   >= 1.10
extra-source-files:
    README.md
tested-with:
    GHC == 7.10.3

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

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

test-suite tests
    build-depends:
        base >= 4.3.0.0 && < 5
      , text < 2.1.2
      , http-link-header
      , hspec
      , QuickCheck
      , hspec-attoparsec
    default-language: Haskell2010
    ghc-options: -threaded -fhpc -Wall
    ghc-prof-options: -auto-all -prof
    hs-source-dirs: test-suite
    main-is: Spec.hs
    other-modules:
        Network.HTTP.Link.ParserSpec
        Network.HTTP.Link.WriterSpec
    type: exitcode-stdio-1.0

benchmark benchmarks
    build-depends:
        base >= 4.3.0.0 && < 5
      , text < 2.1.2
      , http-link-header
      , directory
      , network-uri
      , transformers
      , criterion
    default-language: Haskell2010
    hs-source-dirs: benchmark
    main-is: Bench.hs
    other-modules: ParserBench
                   WriterBench
    type: exitcode-stdio-1.0