-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy patho-clock.cabal
143 lines (123 loc) · 4.42 KB
/
o-clock.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
cabal-version: 2.2
-- SPDX-FileCopyrightText: 2020-2021 Serokell <https://serokell.io>
--
-- SPDX-License-Identifier: MPL-2.0
name: o-clock
version: 1.4.0.1
synopsis: Type-safe time library.
description: See README.md for details.
homepage: https://github.com/serokell/o-clock
bug-reports: https://github.com/serokell/o-clock/issues
license: MPL-2.0
license-file: LICENSE
author: @serokell
maintainer: Serokell <[email protected]>
copyright: 2020 Serokell
category: Time
build-type: Simple
stability: stable
extra-doc-files: CHANGELOG.md
, README.md
, README.lhs
tested-with: GHC == 9.0.2
, GHC == 9.2.8
, GHC == 9.4.8
, GHC == 9.6.6
, GHC == 9.8.4
, GHC == 9.10.1
, GHC == 9.12.1
source-repository head
type: git
location: https://github.com/serokell/o-clock
common common-options
build-depends:
base >=4.12 && <5
ghc-options: -Wall
default-language: Haskell2010
library
import: common-options
hs-source-dirs: src
exposed-modules: Time
Time.Rational
Time.Series
Time.Timestamp
Time.Units
default-extensions: OverloadedStrings
RecordWildCards
ScopedTypeVariables
TypeApplications
TypeFamilies
if flag(aeson)
build-depends: aeson >= 1.2.4 && < 2.3
, text
cpp-options: -DHAS_aeson
executable play-o-clock
import: common-options
main-is: Playground.hs
build-depends: o-clock
hs-source-dirs: examples
ghc-options: -threaded
-fno-warn-orphans
test-suite o-clock-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules: Test.Time.Property
Test.Time.Timestamp
Test.Time.TypeSpec
Test.Time.Units
build-depends: o-clock
, hedgehog >= 0.6 && < 1.6
, hspec-expectations ^>= 0.8
, tasty >= 0.12 && < 1.6
, tasty-hedgehog >= 0.1 && < 1.5.0
, tasty-hunit-compat ^>= 0.2
, type-spec >= 0.3.0.1 && < 0.5
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-extensions: OverloadedStrings
RecordWildCards
test-suite o-clock-doctest
import: common-options
if os(windows)
buildable: False
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Doctest.hs
build-tool-depends: doctest:doctest
build-depends: doctest >= 0.16 && < 0.24
, Glob >= 0.9 && < 0.11
ghc-options: -threaded -rtsopts -with-rtsopts=-N
test-suite readme-test
import: common-options
if os(windows)
buildable: False
type: exitcode-stdio-1.0
main-is: README.lhs
build-tool-depends: markdown-unlit:markdown-unlit
build-depends: o-clock
, markdown-unlit >= 0.5 && < 0.7
ghc-options: -threaded -rtsopts -with-rtsopts=-N -pgmL markdown-unlit -Wno-orphans
benchmark o-clock-benchmark
import: common-options
type: exitcode-stdio-1.0
ghc-options: -O2 -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: benchmark
main-is: Main.hs
build-depends: deepseq >= 1.4
, o-clock
, gauge >= 0.2.1 && < 1
, tiempo >= 0.0.1.1
, time-units == 1.0.0
-- ghc 9.2 is not supported by gauge (due to basement)
if !flag(bench-buildable) || impl(ghc >= 9.2)
buildable: False
default-extensions: OverloadedStrings
RecordWildCards
-- Flags
flag aeson
description: Provide instances for @aeson@
default: False
flag bench-buildable
description: Make benchmarks buildable
default: False