x-revision: 9
Name: tz
Version: 0.1.3.6
License: Apache-2.0
License-File: LICENSE
Author: Mihaly Barasz, Gergely Risko
Maintainer: Janus Troelsen <ysangkok@gmail.com>
Cabal-Version: >= 1.10
Build-Type: Simple
Category: Data
Stability: experimental
Homepage: https://github.com/ysangkok/haskell-tz
Bug-Reports: https://github.com/ysangkok/haskell-tz/issues
Synopsis: Efficient time zone handling
Description:
  The goal of this package is to provide a library that can read time
  zone info files (aka. Olson files), and does time zone conversions
  in a /pure/ and /efficient/ way.
  .
  We also provide platform-independent and/or compiled-in access to
  the standard Time Zone Dabase by the means of the companion @tzdata@
  package <http://hackage.haskell.org/package/tzdata>.
  .
  The package is currently in an alpha phase, I'm still experimenting
  with different ideas wrt. scope\/API\/implementation\/etc. All
  comments are welcome!

Extra-Source-Files:
  README.md
  examples/*.hs
  stack.yaml

Source-Repository head
  Type: git
  Location: https://github.com/ysangkok/haskell-tz.git

Flag template-haskell
  Description: Enable the use of and export Template Haskell
               functionality. (Might need to disable this for
               cross-compiling.)
  Default: True

Library
  Exposed-Modules:
    Data.Time.Zones,
    Data.Time.Zones.Types,
    Data.Time.Zones.Read,
    Data.Time.Zones.All,
    Data.Time.Zones.Internal
  Default-Language: Haskell2010
  GHC-Options: -Wall
  Build-Depends:
    base               >= 4        && < 5,
    binary             >= 0.5      && < 0.11,
    bytestring         >= 0.9      && < 0.13,
    containers         >= 0.5      && < 0.8,
    data-default       >= 0.5      && < 0.9,
    deepseq            >= 1.1      && < 2,
    time               >= 1.2      && < 1.15,
    tzdata             >= 0.1      && < 0.3,
    vector             >= 0.9      && < 0.14
  if flag(template-haskell)
    Exposed-Modules:
      Data.Time.Zones.TH,
      Data.Time.Zones.Internal.CoerceTH
    Build-Depends:
      template-haskell   >= 2.6      && < 2.24
    CPP-Options: -DTZ_TH


Test-Suite tests
  Default-Language: Haskell2010
  Type: exitcode-stdio-1.0
  HS-Source-Dirs: tests
  Main-Is: testTZ.hs
  GHC-Options: -Wall
  Build-Depends:
    tz,
    base                       >= 4       && < 5,
    HUnit                      >= 1.2     && < 1.7,
    tasty,
    tasty-hunit,
    tasty-th,
    time                       >= 1.2     && < 1.15

Test-Suite testsSys
  Default-Language: Haskell2010
  Type: exitcode-stdio-1.0
  HS-Source-Dirs: tests
  Main-Is: testTZSys.hs
  GHC-Options: -Wall
  If os(windows)
    Buildable: False
  Build-Depends:
    tz,
    base                       >= 4       && < 5,
    HUnit                      >= 1.2     && < 1.7,
    QuickCheck                 >= 2.4     && < 3,
    tasty,
    tasty-hunit,
    tasty-th,
    tasty-quickcheck,
    time                       >= 1.2     && < 1.15

Test-Suite th-test
  Default-Language: Haskell2010
  Type: exitcode-stdio-1.0
  HS-Source-Dirs: tests
  Main-Is: testTH.hs
  GHC-Options: -Wall
  if !flag(template-haskell)
    Buildable: False
  Build-Depends:
    tz,
    base                       >= 4       && < 5,
    HUnit                      >= 1.2     && < 1.7,
    tasty,
    tasty-hunit,
    tasty-th

Test-Suite test-all
  Default-Language: Haskell2010
  Type: exitcode-stdio-1.0
  HS-Source-Dirs: tests
  Main-Is: testAll.hs
  GHC-Options: -Wall
  Build-Depends:
    tz,
    tzdata,
    base                       >= 4       && < 5,
    HUnit                      >= 1.2     && < 1.7,
    tasty,
    tasty-hunit,
    tasty-th

Benchmark bench
  Default-Language: Haskell2010
  Type: exitcode-stdio-1.0
  HS-Source-Dirs: benchmarks
  Main-Is: benchTZ.hs
  GHC-Options: -Wall -O2
  Build-Depends:
    tz,
    base                       >= 4       && < 5,
    criterion                  >= 0.8     && < 1.7,
    time                       >= 1.2     && < 1.15,
    timezone-olson,
    timezone-series

Benchmark bench_greg
  Default-Language: Haskell2010
  Type: exitcode-stdio-1.0
  HS-Source-Dirs: benchmarks
  Main-Is: benchGreg.hs
  GHC-Options: -Wall -O2
  Build-Depends:
    tz,
    base                       >= 4       && < 5,
    criterion                  >= 0.8     && < 1.7,
    lens,
    thyme,
    time

Benchmark bench_conv
  Default-Language: Haskell2010
  Type: exitcode-stdio-1.0
  HS-Source-Dirs: benchmarks
  Main-Is: benchConv.hs
  GHC-Options: -Wall -O2
  Build-Depends:
    tz,
    base                       >= 4       && < 5,
    criterion                  >= 0.8     && < 1.7,
    time