hodatime-0.2.1.1: hodatime.cabal
name: hodatime
version: 0.2.1.1
stability: experimental
license: BSD3
license-file: LICENSE
cabal-version: >=1.10
build-type: Simple
author: Jason Johnson
maintainer: <jason.johnson.081@gmail.com>
homepage: https://github.com/jason-johnson/hodatime
bug-reports: https://github.com/jason-johnson/hodatime/issues
synopsis: A fully featured date/time library based on Nodatime
description: A library for dealing with time, dates, calendars and time zones
category: Data, Time
tested-with: GHC == 8.0.2
extra-source-files:
platform/osx/Data/HodaTime/TimeZone/Platform.hs
platform/osx/Data/HodaTime/Instant/Platform.hs
platform/linux/Data/HodaTime/TimeZone/Platform.hs
platform/linux/Data/HodaTime/Instant/Platform.hs
platform/windows/Data/HodaTime/TimeZone/Platform.hs
platform/windows/Data/HodaTime/Instant/Platform.hsc
source-repository head
type: git
location: https://github.com/jason-johnson/hodatime
library
default-language:
Haskell2010
hs-source-dirs: src
if os(linux)
hs-source-dirs: platform/linux
if os(darwin)
hs-source-dirs: platform/osx
if os(windows)
hs-source-dirs: platform/windows
build-depends:
base >= 4.9 && < 4.10,
mtl,
binary,
bytestring,
containers,
exceptions,
fingertree >= 0.1.3 && < 0.1.4,
parsec
if os(windows)
build-depends: Win32
if !os(windows)
build-depends: unix,
filepath,
directory
ghc-options: -Wall
exposed-modules:
Data.HodaTime,
Data.HodaTime.Calendar.Coptic,
Data.HodaTime.Calendar.Gregorian,
Data.HodaTime.Calendar.Hebrew,
Data.HodaTime.Calendar.Islamic,
Data.HodaTime.Calendar.Iso,
Data.HodaTime.Calendar.Persian,
Data.HodaTime.CalendarDate,
Data.HodaTime.CalendarDateTime,
Data.HodaTime.Duration,
Data.HodaTime.Instant,
Data.HodaTime.Interval,
Data.HodaTime.Offset,
Data.HodaTime.LocalTime,
Data.HodaTime.OffsetDateTime,
Data.HodaTime.TimeZone
Data.HodaTime.ZonedDateTime
other-modules:
Data.HodaTime.Constants,
Data.HodaTime.Internal,
Data.HodaTime.Duration.Internal,
Data.HodaTime.LocalTime.Internal,
Data.HodaTime.Calendar.Internal,
Data.HodaTime.Calendar.Constants,
Data.HodaTime.Calendar.Gregorian.Internal,
Data.HodaTime.Calendar.Gregorian.CacheTable,
Data.HodaTime.CalendarDateTime.Internal,
Data.HodaTime.Instant.Internal,
Data.HodaTime.Instant.Platform,
Data.HodaTime.Offset.Internal,
Data.HodaTime.TimeZone.Internal,
Data.HodaTime.TimeZone.Platform,
Data.HodaTime.ZonedDateTime.Internal
if !os(windows)
other-modules:
Data.HodaTime.TimeZone.Olson,
Data.HodaTime.TimeZone.ParseTZ,
Data.HodaTime.TimeZone.Unix,
Data.HodaTime.Instant.Unix
test-suite test
default-language:
Haskell2010
type:
exitcode-stdio-1.0
hs-source-dirs:
tests
main-is:
test.hs
other-modules:
HodaTime.Util,
HodaTime.InstantTest,
HodaTime.LocalTimeTest,
HodaTime.DurationTest,
HodaTime.OffsetTest,
HodaTime.Calendar.GregorianTest,
HodaTime.CalendarDateTimeTest,
HodaTime.ZonedDateTimeTest
build-depends:
base >= 4 && < 5,
tasty >= 0.11,
tasty-smallcheck,
tasty-quickcheck,
tasty-hunit,
QuickCheck,
time,
bytestring,
hodatime
benchmark bench
default-language:
Haskell2010
type:
exitcode-stdio-1.0
hs-source-dirs:
src,
bench
main-is:
bench.hs
other-modules:
HodaTime.OffsetBench
build-depends:
base > 4,
criterion,
random
ghc-options:
-Wall
-O2