homepage: https://github.com/ryota-ka/duration#readme
changelog-type: ''
hash: 370cd2adbdcc307ca2a4696b301d34ff35bdf17c12e025feefd9b20bc30a9d8e
test-bench-deps:
  base: ! '>=4.7 && <5'
  time: -any
  hspec: -any
  parsec: -any
  doctest: -any
  duration: -any
  template-haskell: -any
maintainer: kameoka.ryota@gmail.com
synopsis: A tiny compile-time time utility library inspired by zeit/ms
changelog: ''
basic-deps:
  base: ! '>=4.7 && <5'
  time: -any
  parsec: -any
  template-haskell: -any
all-versions:
- '0.1.0.0'
author: Ryota Kameoka
latest: '0.1.0.0'
description-type: markdown
description: ! "# duration\n\nA tiny compile-time time utility library, inspired by
  [zeit/ms](https://github.com/zeit/ms).\n\n## Examples\n\n```haskell\n{-# LANGUAGE
  QuasiQuotes #-}\n{-# LANGUAGE TypeApplications #-}\n\nmodule Main where\n\nimport
  Data.Time.Clock (DiffTime, NominalDiffTime)\nimport Data.Time.Clock.Duration (t,
  s, ms, µs, ns, ps)\n\nmain :: IO ()\nmain = do\n    print @DiffTime [t| 1 day |]
  -- 86400s\n    print @DiffTime [t| 2h |]    -- 7200s\n    print @DiffTime [t| -1m
  |]   -- -60s\n\n    print @NominalDiffTime [s| 1 |]  -- 1s\n    print @NominalDiffTime
  [ms| 1 |] -- 0.001s\n    print @NominalDiffTime [µs| 1 |] -- 0.000001s\n    print
  @NominalDiffTime [ns| 1 |] -- 0.000000001s\n    print @NominalDiffTime [ps| 1 |]
  -- 0.000000000001s\n\n    print @Int      [s| 2 days |]  -- 172800\n    print @Integer
  \ [ms| 5s |]     -- 5000\n    print @Double   [µs| 2min |]   -- 1.2e8\n    print
  @Float    [ns| -1 sec |] -- -1.0e9\n    print @Rational [ps| 10ms |]   -- 10000000000
  % 1\n```\n"
license-name: BSD3

Update from Hackage at 2018-04-27T16:02:55Z
Update from Hackage at 2018-04-27T16:02:55Z
