packages feed

utc-0.2.0.1: utc.cabal

name:                utc
version:             0.2.0.1
stability:           experimental
synopsis:            A pragmatic time and date library.
description:         This library aims to supply you with common
                     types and operations for working with time and date.
                     .
                       * Parsing and rendering common formats like ISO8601 and RFC3339.
                     .
                       * Modifying dates and times in a way that is easy to understand
                         and not overengineered (srsly, who needs something else than the
                         Gregorian Calendar?)
                     .
                       * A set of classes that provide interfaces for your own application
                         specific or maybe more efficient time and date types. Implement the
                         interfaces and get all the parsing and rendering functions for free!
                     .
                     Bug reports or (even better) tests are appreciated.
license:             MIT
license-file:        LICENSE
author:              Lars Petersen
maintainer:          lars@nyantec.com
copyright:           Copyright (c) Lars Petersen 2014-2015
homepage:            https://github.com/lpeterse/haskell-utc
bug-reports:         https://github.com/lpeterse/haskell-utc/issues
category:            Data, Time, Parsing
build-type:          Simple
cabal-version:       >=1.10

Library
  build-depends:     base >= 4.7 && < 5
                   , bytestring >= 0.10.4.0 && < 1
                   , text >= 1.0 && < 2
                   , attoparsec >= 0.12 && < 1
                   , clock >= 0.3 && < 1
                   , exceptions >= 0.4 && < 1
  ghc-options:       -Wall
  hs-source-dirs:    .
  default-language:  Haskell98
  exposed-modules:   Data.UTC
  other-modules:     Data.UTC.Class
                   , Data.UTC.Class.Epoch
                   , Data.UTC.Class.IsDate
                   , Data.UTC.Class.IsTime
                   , Data.UTC.Class.IsUnixTime
                   , Data.UTC.Class.HasUnixTime
                   , Data.UTC.Type
                   , Data.UTC.Type.Date
                   , Data.UTC.Type.Time
                   , Data.UTC.Type.DateTime
                   , Data.UTC.Type.Local
                   , Data.UTC.Type.Exception
                   , Data.UTC.Format.Rfc3339
                   , Data.UTC.Format.Iso8601
                   , Data.UTC.Internal
                   , Data.UTC.Format.Rfc3339.Parser
                   , Data.UTC.Format.Rfc3339.Builder

Test-Suite test
  type:              exitcode-stdio-1.0
  main-is:           Test.hs
  ghc-options:       -Wall -O2
  hs-source-dirs:    tests .
  other-modules:     Data.UTC
                   -- in library unexposed modules
                   , Data.UTC.Class
                   , Data.UTC.Class.Epoch
                   , Data.UTC.Class.IsDate
                   , Data.UTC.Class.IsDate.Test
                   , Data.UTC.Class.IsTime
                   , Data.UTC.Class.IsUnixTime
                   , Data.UTC.Class.HasUnixTime
                   , Data.UTC.Type
                   , Data.UTC.Type.Date
                   , Data.UTC.Type.Time
                   , Data.UTC.Type.DateTime
                   , Data.UTC.Type.Local
                   , Data.UTC.Type.Exception
                   , Data.UTC.Format.Rfc3339
                   , Data.UTC.Format.Iso8601
                   , Data.UTC.Format.Rfc3339.Parser
                   , Data.UTC.Format.Rfc3339.Builder
                   , Data.UTC.Internal
                   , Data.UTC.Internal.Test
  build-depends:     base < 5
                   , text
                   , bytestring >= 0.10.4.0
                   , attoparsec
                   , clock >= 0.3 && < 0.5
                   , exceptions >= 0.4
                   -- additional deps for testing
                   , Cabal
                   , test-framework >= 0.8.0.2
                   , test-framework-quickcheck2 >= 0.3.0.3
                   , QuickCheck
  default-language:  Haskell98

source-repository head
  type:     git
  location: https://github.com/lpeterse/haskell-utc.git