aboutsummaryrefslogtreecommitdiff
path: root/perfeed.cabal
blob: 55b7b5a5bc267b9ddb52d64d6c2ef9145554c1a2 (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
name:                perfeed
version:             0.13.1
synopsis:            Fetch Atom/RSS feeds and convert entries to emails
description:         Please see README.md
homepage:            http://git.gueux.org/perfeed.git
license:             GPL-3
license-file:        LICENSE
author:              Félix Sipma
maintainer:          felix.sipma@no-log.org
copyright:           2017 Félix Sipma
category:            Utility
build-type:          Simple
-- extra-source-files:  
cabal-version:       >=1.10

Flag dev
  Description:       Turn on development settings.
  Default:           False

library
  hs-source-dirs:      src
  exposed-modules:     Atom
                     , RSS
                     , RSS1
                     , Types
                     , Parse
                     , Convert
                     , Date
                     , Email
                     , DB
                     , Run
                     , Config
                     , Config.CmdConfig
                     , Config.FileConfig
                     , Config.InternalConfig
                     , Filter
  build-depends:       base >= 4.8 && < 5
                     , text
                     , bytestring
                     , time >= 1.5
                     , conduit
                     , xml-conduit >= 1.3.0
                     , http-conduit >= 0.4.30
                     , lucid
                     , blaze-markup
                     , pandoc >= 1.14
                     , mime-mail
                     , persistent
                     , persistent-template
                     , persistent-sqlite
                     , transformers
                     , resourcet
                     , monad-logger
                     , exceptions
                     , yaml
                     , path
                     , directory
                     , mtl
                     , optparse-applicative
                     , unix
                     , aeson
                     , text-manipulate
                     , process
                     , template-haskell
  default-language:    Haskell2010
  if flag(dev)
    cpp-options:   -DDEVELOPMENT
  ghc-options:   -Wall -fwarn-tabs

executable perfeed
  hs-source-dirs:      app
  if flag(dev)
    main-is:           Devel.hs
  else
    main-is:           Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base
                     , perfeed
                     , monad-logger
                     , text
  default-language:    Haskell2010

test-suite perfeed-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , hspec
                     , QuickCheck
                     , perfeed
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://git.gueux.org/perfeed.git