Browse Source

forgot to expose new function, cabal enhancement

master
parent
commit
8a798874b7
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 6
      human-readable-duration.cabal
  2. 3
      src/Data/Duration.hs

6
human-readable-duration.cabal

@ -1,5 +1,5 @@
name: human-readable-duration
version: 0.2.1.1
version: 0.2.1.2
synopsis: Provide duration helper
homepage: https://gitlab.esy.fun/yogsototh/human-readable-duration#readme
license: BSD3
@ -9,6 +9,9 @@ maintainer: yann.esposito@gmail.com
category: Time
build-type: Simple
cabal-version: >=1.10
extra-source-files:
README.md
stack.yaml
description:
This is a minimal Haskell library to display duration.
.
@ -28,6 +31,7 @@ library
Data.Duration.Tutorial
build-depends: base >= 4.7 && < 5
default-language: Haskell2010
ghc-options: -Wall -Wincomplete-uni-patterns -Wredundant-constraints -Wnoncanonical-monad-instances
test-suite doctest
type: exitcode-stdio-1.0

3
src/Data/Duration.hs

@ -16,6 +16,7 @@
module Data.Duration
( humanReadableDuration
, humanReadableDuration'
, approximativeDuration
, Seconds
-- durations
, ms
@ -33,7 +34,7 @@ module Data.Duration
, getYears
) where
import Data.Fixed (Fixed(..), Micro, div', mod')
import Data.Fixed (Fixed (..), Micro, div', mod')
type Seconds = Micro

Loading…
Cancel
Save