-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpodtime.cabal
158 lines (153 loc) · 4.17 KB
/
podtime.cabal
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
cabal-version: 3.0
name: podtime
version: 0.7.0
synopsis: A tool that prints the total time of the new podcasts in a gPodder database.
homepage: https://github.com/eunikolsky/podtime#readme
license: BSD-3-Clause
license-file: LICENSE
author: Eugene Nikolsky
maintainer: [email protected]
copyright: 2020 Eugene Nikolsky
category: Audio
build-type: Simple
extra-source-files: README.adoc
common common-options
build-depends:
base >= 4.7 && < 5
default-language: Haskell2010
default-extensions:
BangPatterns
, BinaryLiterals
, DeriveGeneric
, DerivingStrategies
, GeneralizedNewtypeDeriving
, ImportQualifiedPost
, NamedFieldPuns
, NumericUnderscores
, OverloadedStrings
, ScopedTypeVariables
, TypeApplications
-- most of the list is copied from summoner
-- https://github.com/kowainik/summoner/blob/main/summoner-cli/examples/stack-full/stack-full.cabal
ghc-options: -Wall
-Wcompat
-Widentities
-Wredundant-constraints
-Wnoncanonical-monad-instances
-fhide-source-paths
-Wmissing-export-lists
-Wpartial-fields
-Wmissing-deriving-strategies
-Wunused-packages
-Werror=empty-enumerations
-Werror=missing-methods
-Werror=missing-fields
-Werror=incomplete-patterns
-Werror=incomplete-record-updates
-Werror=incomplete-uni-patterns
-Werror=missing-home-modules
library
import: common-options
hs-source-dirs: src
exposed-modules:
AttoparsecExtra
, AudioDuration
, ConduitExtra
, GetDuration
, ID3
, ID3V1
, Lib
, M4A
, MP3
build-depends:
attoparsec
, bytestring
, conduit
, text
, time
executable podtime
import: common-options
hs-source-dirs: program
main-is: Main.hs
other-modules:
Action
, CacheItemCSV
, FileDurationCacheM
, DurationParseError
, GPodderDatabase
, NoDurationCacheM
, OrphanInstances
, Paths_podtime
, PureParserDurationM
, Stat
, XDGDir
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
podtime
, bytestring
, cassava
, conduit
, conduit-extra
, containers
, directory
, filepath
, mtl
, optparse-applicative
, raw-strings-qq
, sqlite-simple
, text
, time
, unix
, unicode-show
, unliftio
test-suite unit-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules:
M4ASpec, MP3Spec
, ID3Spec, ID3V1Spec
, ConduitExtraSpec
, GetDurationSpec
, TestCommon, AnySizedTag, ID3V1ValidTag
, Domain.FrameSync, Domain.ID3Tag
, Domain.MP3HeaderTypes, Domain.MPEGHeaderTypes
, Domain.MPEG1Types, Domain.MPEG2Types
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
QuickCheck
, attoparsec
, bytestring
, conduit
, containers
, hspec
, hspec-attoparsec
, mtl
, podtime
, quickcheck-instances
, time
test-suite integration-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: int-test
-- very weird, but this `main-is` is not enough
-- https://stackoverflow.com/questions/50659327/stack-build-results-in-output-was-redirected-with-o-but-no-output-will-be-gen/50659706#50659706
main-is: IntegrationSpec.hs
other-modules:
SuccessFormatter
ghc-options: -threaded -rtsopts -with-rtsopts=-N
-main-is IntegrationSpec
build-depends:
attoparsec
, bytestring
, directory
, filepath
, hspec
, hspec-api
, hspec-attoparsec
, hspec-core
, podtime
, process
, text
, unicode-show