packages feed

utc-0.1.0.0: utc.cabal

name:                utc
version:             0.1.0.0
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!
                     .
                     This is a work in progress!
                     .
                     Try it out and play with it. Tell me what you think
                     about the API design and naming, but __DON'T USE IT
                     IN PRODUCTION YET!__
                     .
                     Bug reports or (even better) tests are welcome.
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 < 5
                   , text
                   , bytestring >= 0.10.4.0
                   , attoparsec
                   , clock >= 0.3 && < 0.5
  ghc-options:       -Wall
  hs-source-dirs:    .
  default-language:  Haskell98
  exposed-modules:   Data.UTC
                   , Data.UTC.Class
                   , Data.UTC.Class.Epoch
                   , Data.UTC.Class.Midnight
                   , 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.Format.Rfc3339
                   , Data.UTC.Internal
  other-modules:     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
                   , Data.UTC.Class
                   , Data.UTC.Class.Epoch
                   , Data.UTC.Class.Midnight
                   , 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.Format.Rfc3339
                   -- in library unexposed modules
                   , 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
                   -- 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