packages feed

chronologique-0.3.0.0: chronologique.cabal

cabal-version:       >= 1.10
name:                chronologique
version:             0.3.0.0
synopsis:            Time to manipulate time
description:
 A simple type useful for representing timestamps as generated by system
 events, along with conveniences for converting between time types from common
 Haskell time libraries.
 .
 Our original use was wanting to conveniently measure things happening on
 distributed computer systems. Since machine clock cycles are in units of
 nanoseconds, this has the nice property that, assuming the system clock is not
 corrupted, two subsequent events from the same source process are likely to
 have monotonically increasing timestamps. And even if the system clock has
 skew, they're still decently likely to be unique per device. These TimeStamps
 thus make good keys when building Maps.
 .
 The core type is in "Chrono.TimeStamp", see there for full documentation.

license:             BSD3
license-file:        LICENCE
author:              Andrew Cowie <andrew@operationaldynamics.com>
maintainer:          Andrew Cowie <andrew@operationaldynamics.com>
copyright:           © 2016-2017 Operational Dynamics Consulting Pty Ltd, and Others
category:            Text
tested-with:         GHC == 8.0

build-type:          Simple

library
  default-language:  Haskell2010

  build-depends:     base >= 4.9 && < 5,
                     time,
                     hourglass,
                     vector

  hs-source-dirs:    lib

  exposed-modules:   Chrono.TimeStamp
                     Chrono.Compat
  other-modules:     Chrono.Formats

  ghc-options:       -Wall
                     -Wwarn
                     -fwarn-tabs

test-suite           experiment
  type:              exitcode-stdio-1.0
  default-language:  Haskell2010
  buildable:         False

  build-depends:     base,
                     chronologique

  hs-source-dirs:    tests

  main-is:           Experiment.hs

  ghc-options:       -threaded
                     -Wall
                     -Wwarn
                     -fwarn-tabs


test-suite           check
  type:              exitcode-stdio-1.0
  default-language:  Haskell2010

  build-depends:     base,
                     hspec,
                     hourglass,
                     QuickCheck,
                     vector,
                     chronologique

  hs-source-dirs:    tests

  main-is:           TestSuite.hs

  other-modules:     CheckTimeStamp,
                     CheckVectorOperations

  ghc-options:       -threaded
                     -Wall
                     -Wwarn
                     -fwarn-tabs

-- vim: set tabstop=22 expandtab: