1Name:                   unix-time
2Version:                0.4.7
3Author:                 Kazu Yamamoto <kazu@iij.ad.jp>
4Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp>
5License:                BSD3
6License-File:           LICENSE
7Synopsis:               Unix time parser/formatter and utilities
8Description:            Fast parser\/formatter\/utilities for Unix time
9Category:               Data
10Cabal-Version:          1.18
11Build-Type:             Configure
12Extra-Source-Files:     cbits/config.h.in
13                        cbits/conv.c
14                        cbits/strftime.c
15                        cbits/strptime.c
16                        cbits/win_patch.c
17                        cbits/win_patch.h
18                        configure
19                        configure.ac
20Extra-Tmp-Files:        config.log config.status autom4te.cache cbits/config.h
21
22Library
23  Default-Language:     Haskell2010
24  GHC-Options:          -Wall
25  if impl(ghc >= 7.8)
26    CC-Options:         -fPIC
27  Exposed-Modules:      Data.UnixTime
28  Other-Modules:        Data.UnixTime.Conv
29                        Data.UnixTime.Diff
30                        Data.UnixTime.Types
31                        Data.UnixTime.Sys
32  Build-Depends:        base >= 4 && < 5
33                      , bytestring
34                      , old-time
35                      , binary
36  Build-Tools:          hsc2hs
37  C-Sources:            cbits/conv.c
38  if os(windows)
39    C-Sources:          cbits/strftime.c
40                      , cbits/strptime.c
41                      , cbits/win_patch.c
42  include-dirs:         cbits
43
44Test-Suite doctests
45  Buildable:            False
46  Type:                 exitcode-stdio-1.0
47  Default-Language:     Haskell2010
48  HS-Source-Dirs:       test
49  Ghc-Options:          -threaded -Wall
50  Main-Is:              doctests.hs
51  Build-Depends:        base
52                      , doctest >= 0.9.3
53                      , unix-time
54
55Test-Suite spec
56  Type:                 exitcode-stdio-1.0
57  Default-Language:     Haskell2010
58  Hs-Source-Dirs:       test
59  Ghc-Options:          -Wall
60  Main-Is:              Spec.hs
61  Other-Modules:        UnixTimeSpec
62  Build-Tools:          hspec-discover >= 2.6
63  Build-Depends:        base
64                      , bytestring
65                      , old-locale
66                      , old-time
67                      , QuickCheck
68                      , time
69                      , unix-time
70                      , hspec >= 2.6
71
72Source-Repository head
73  Type:                 git
74  Location:             https://github.com/kazu-yamamoto/unix-time
75