name: atom-conduit
version: 0.5.0.3
cabal-version: >=1.10
build-type: Simple
license: PublicDomain
license-file: LICENSE
maintainer: koral
synopsis: Streaming parser/renderer for the Atom 1.0 standard (RFC 4287).
description: Cf README.
category: XML, Conduit
author: koral
extra-source-files:
    README.md

source-repository head
    type: git
    location: git://github.com/k0ral/atom-conduit.git

flag enable-hlint-test
  description: Enable hlint test-suite
  manual: True
  default: False

library
    exposed-modules:
        Text.Atom.Conduit.Parse
        Text.Atom.Conduit.Render
        Text.Atom.Lens
        Text.Atom.Types
    build-depends:
        base >=4.9 && <5,
        blaze-builder -any,
        conduit >=1.3,
        safe-exceptions -any,
        lens-simple -any,
        mono-traversable >=1.0.0.1,
        parsers -any,
        text -any,
        time >=1.5,
        timerep >=2.0,
        uri-bytestring >=0.2,
        xml-conduit >=1.5,
        xml-types -any
    default-language: Haskell2010

test-suite  Tests
    type: exitcode-stdio-1.0
    main-is: Main.hs
    build-depends:
        atom-conduit -any,
        base >=4.9,
        blaze-builder -any,
        conduit >=1.3,
        data-default -any,
        filepath -any,
        lens-simple -any,
        mono-traversable >=1.0.0.1,
        parsers -any,
        quickcheck-instances -any,
        resourcet -any,
        safe-exceptions -any,
        tasty -any,
        tasty-golden -any,
        tasty-hunit -any,
        tasty-quickcheck -any,
        time >=1.5,
        text -any,
        uri-bytestring >=0.2,
        xml-conduit >=1.4,
        xml-types -any
    default-language: Haskell2010
    hs-source-dirs: test

test-suite hlint
    if flag(enable-hlint-test)
      buildable: True
    else
      buildable: False
    type: exitcode-stdio-1.0
    main-is: HLint.hs
    build-depends:
        base >=4.8,
        hlint -any
    default-language: Haskell2010
    hs-source-dirs: test