packages feed

thyme-0.1.2.0: thyme.cabal

name:           thyme
version:        0.1.2.0
synopsis:       A faster time library
description:
    A faster time library
homepage:       https://github.com/liyang/thyme
license:        BSD3
license-file:   LICENSE
author:         Liyang HU, Ashley Yakeley
maintainer:     thyme@liyang.hu
copyright:      © 2013 Liyang HU
category:       Data, System
build-type:     Simple
cabal-version:  >= 1.8
stability:      experimental

source-repository head
    type:       git
    location:   http://github.com/liyang/thyme

flag instance-num
    description: instance Num (Nominal)DiffTime
    default: True

flag bug-for-bug
    description: bug-for-bug compatibility with time
    default: True

flag show-internal
    description: instance Show of internal representation
    default: False

library
    hs-source-dirs: src
    exposed-modules:
        Data.Thyme
        Data.Thyme.Calendar
        Data.Thyme.Calendar.MonthDay
        Data.Thyme.Calendar.OrdinalDate
        Data.Thyme.Calendar.WeekDate
        Data.Thyme.Clock
        Data.Thyme.Clock.POSIX
        Data.Thyme.Format
        Data.Thyme.LocalTime
    other-modules:
        Data.Micro
        Data.Thyme.Calendar.Internal
        Data.Thyme.Clock.Scale
        Data.Thyme.Clock.UTC
        Data.Thyme.Format.Internal
        Data.Thyme.LocalTime.Internal
        Data.Thyme.LocalTime.TimeZone
        Data.Thyme.TH
    build-depends:
        base >= 4.5 && < 5,
        mtl >= 2.1,
        deepseq >= 1.2,
        vector-space >= 0.8,
        lens >= 3.7,
        old-locale >= 1.0,
        template-haskell >= 2.6,
        bytestring >= 0.10,
        attoparsec >= 0.10,
        time >= 1.4
    ghc-options: -Wall
    if flag(instance-num)
        cpp-options: -DINSTANCE_NUM=1
    if flag(bug-for-bug)
        cpp-options: -DBUG_FOR_BUG=1
    if flag(show-internal)
        cpp-options: -DSHOW_INTERNAL=1

test-suite sanity
    type: exitcode-stdio-1.0
    hs-source-dirs: tests
    main-is: sanity.hs
    build-depends:
        base >= 4.5 && < 5,
        mtl >= 2.1,
        deepseq >= 1.2,
        vector-space >= 0.8,
        lens >= 3.7,
        old-locale >= 1.0,
        random >= 1.0,
        QuickCheck >= 2.4,
        criterion >= 0.6,
        thyme,
        time >= 1.4
    ghc-options: -Wall

-- vim: et sw=4 ts=4 sts=4: