forked from kazu-yamamoto/unix-time
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unix-time.cabal
90 lines (82 loc) · 2.49 KB
/
unix-time.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
cabal-version: 1.18
name: unix-time
version: 0.4.10
license: BSD3
license-file: LICENSE
maintainer: Kazu Yamamoto <[email protected]>
author: Kazu Yamamoto <[email protected]>
synopsis: Unix time parser/formatter and utilities
description: Fast parser\/formatter\/utilities for Unix time
category: Data
build-type: Configure
extra-source-files:
cbits/config.h.in
cbits/conv.c
cbits/strftime.c
cbits/strptime.c
cbits/win_patch.c
cbits/win_patch.h
configure
configure.ac
extra-tmp-files:
config.log
config.status
autom4te.cache
cbits/config.h
source-repository head
type: git
location: https://github.com/kazu-yamamoto/unix-time
library
exposed-modules: Data.UnixTime
build-tools: hsc2hs >=0
c-sources: cbits/conv.c
other-modules:
Data.UnixTime.Conv
Data.UnixTime.Diff
Data.UnixTime.Types
Data.UnixTime.Sys
default-language: Haskell2010
include-dirs: cbits
ghc-options: -Wall
build-depends:
base >=4 && <5,
bytestring,
old-time,
binary
if impl(ghc >=7.8)
cc-options: -fPIC
-- GHC 9.4.5, 9.6.1, and 9.6.2 on Windows do not link against mingwex, but
-- unix-time implicitly depends on this library due to the use of the
-- gettimeofday() function, which comes from mingwex on Windows. To avoid
-- linker errors in the absence of a mingwex dependency (see
-- https://gitlab.haskell.org/ghc/ghc/-/issues/23533 for an example of
-- this), we depend on mingwex explicitly here.
--
-- Other versions of GHC on Windows already depend on mingwex, so we guard
-- this behind appropriate conditionals.
if os(windows)
if (impl(ghc >= 9.4.5) && !impl(ghc >= 9.4.6)) || (impl(ghc >= 9.6.1) && !impl(ghc >= 9.6.3))
extra-libraries: mingwex
if os(windows)
c-sources:
cbits/strftime.c
cbits/strptime.c
cbits/win_patch.c
test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
build-tools: hspec-discover >=2.6
hs-source-dirs: test
other-modules: UnixTimeSpec
default-language: Haskell2010
ghc-options: -Wall
build-depends:
base,
bytestring,
old-locale,
old-time,
QuickCheck,
template-haskell,
time,
unix-time,
hspec >=2.6