name:                warc
version:             1.0.5
synopsis:            A parser for the Web Archive (WARC) format
description:         A streaming parser for the Web Archive (WARC) format.
homepage:            http://github.com/bgamari/warc
license:             BSD3
license-file:        LICENSE
author:              Ben Gamari
maintainer:          ben@smart-cactus.org
copyright:           (c) 2015 Ben Gamari
category:            Data
build-type:          Simple
tested-with:         GHC ==8.0.2, GHC ==8.2.2, GHC ==8.4.1, GHC ==8.6.1, GHC == 8.8.1, GHC ==8.10.7, GHC==9.0.2, GHC ==9.2.1
cabal-version:       >=1.10
extra-source-files:  CHANGELOG.md

flag gzip
  description:         Include support in the warc-export executable for
                       transparent decompression of gzip archives.
  manual:              True
  default:             False

source-repository head
  type:                git
  location:            git://github.com/bgamari/warc

library
  exposed-modules:     Data.Warc, Data.Warc.Header
  other-extensions:    RankNTypes, OverloadedStrings, TemplateHaskell
  hs-source-dirs:      src
  build-depends:       base >=4.8 && <4.17,
                       pipes >=4.1 && <4.4,
                       attoparsec >=0.12 && <0.15,
                       unordered-containers >=0.2 && <0.3,
                       hashable >=1.2 && <1.5,
                       bytestring >=0.10 && <0.12,
                       pipes-bytestring >=2.1 && <2.2,
                       transformers >=0.4 && <0.7,
                       lens >=4.7 && <5.2,
                       pipes-attoparsec >=0.5 && <0.6,
                       free >=4.10 && <5.2,
                       errors >=1.4 && <3.0,
                       time >=1.5 && <1.14,
                       text >=1.2 && <2.1,
                       mmorph >= 1.0 && <1.3
  default-language:    Haskell2010

executable warc-export
  main-is:             WarcExport.hs
  other-extensions:    RankNTypes, OverloadedStrings, TemplateHaskell
  build-depends:       base,
                       warc,
                       filepath,
                       exceptions,
                       optparse-applicative >= 0.12 && < 0.17,
                       pipes,
                       attoparsec,
                       bytestring,
                       pipes-bytestring,
                       transformers,
                       lens,
                       pipes-attoparsec,
                       free,
                       errors,
                       time,
                       text
  if flag(gzip)
    cpp-options:       -DWITH_GZIP
    build-depends:     pipes-zlib
  default-language:    Haskell2010