summaryrefslogtreecommitdiff
path: root/opml-conduit.cabal
blob: 3fb364e8195dadbd000e6c8ee28d48621a43f30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name:                opml-conduit
version:             0.7.0.0
synopsis:            Streaming parser/renderer for the OPML 2.0 format.
description:
    This library implements the OPML 2.0 standard (<http://dev.opml.org/spec2.html>) as a 'conduit' parser/renderer.
homepage:            https://github.com/k0ral/opml-conduit
license:             PublicDomain
license-file:        LICENSE
author:              koral <koral@mailoo.org>
maintainer:          koral <koral@mailoo.org>
category:            Conduit, Text, XML
build-type:          Simple
cabal-version:       >=1.10
data-files:
  data/category.opml
  data/directory.opml
  data/placesLived.opml
  data/simpleScript.opml
  data/states.opml
  data/subscriptionList.opml

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

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

library
  exposed-modules:
    Text.OPML
    Text.OPML.Lens
    Text.OPML.Conduit.Parse
    Text.OPML.Conduit.Render
    Text.OPML.Types
  build-depends:
      base >= 4.8 && < 5
    , case-insensitive
    , conduit
    , conduit-combinators
    , containers
    , safe-exceptions
    , lens-simple
    , monoid-subclasses
    , refined >= 0.2
    , semigroups
    , text
    , time >= 1.5
    , timerep >= 2.0.0
    , uri-bytestring >= 0.2
    , xml-conduit >= 1.5
    , xml-types
  default-language: Haskell2010
  ghc-options: -Wall -fno-warn-unused-do-bind

test-suite tests
  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is: Main.hs
  other-modules:
    Paths_opml_conduit
    Arbitrary
  build-depends:
      base >= 4.8 && < 5
    , bytestring
    , conduit
    , conduit-combinators
    , containers
    , data-default
    , lens-simple
    , mtl
    , opml-conduit
    , parsers
    , QuickCheck
    , quickcheck-instances
    , refined >= 0.2
    , resourcet
    , semigroups
    , tasty
    , tasty-hunit
    , tasty-quickcheck
    , text
    , time >= 1.5
    , uri-bytestring >= 0.1.9
    , xml-conduit >= 1.3
  default-language: Haskell2010
  ghc-options: -Wall -fno-warn-orphans

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