simple-media-timestamp-formatting 0.1.0.0 → 0.1.1.0
raw patch · 3 files changed
+13/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Media.Timestamp.Formatting: rangeaf :: Format r (Time -> r) -> Format r (Range -> r)
Files
- ChangeLog.md +4/−0
- simple-media-timestamp-formatting.cabal +1/−1
- src/Media/Timestamp/Formatting.hs +8/−0
ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for simple-media-timestamp-formatting +## v0.1.1.0++* Add `rangeaf` formatter.+ ## v0.1.0.0 * Add formatters for ffmpeg's timestamp format and srt's timestamp format.
simple-media-timestamp-formatting.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: simple-media-timestamp-formatting-version: 0.1.0.0+version: 0.1.1.0 synopsis: Formatting for simple-media-timestamp description: Please see the README on GitHub at <https://github.com/githubuser/simple-media-timestamp-formatting#readme> category: Media
src/Media/Timestamp/Formatting.hs view
@@ -9,6 +9,7 @@ module Media.Timestamp.Formatting ( timef, timecf,+ rangeaf, ) where @@ -26,3 +27,10 @@ -- @since 0.1.0.0 timecf :: Format r (Time -> r) timecf = accessed hour int % ":" <> accessed minute int % ":" <> accessed second int % "," <> accessed millisecond int++-- | Formats a `Range` as "X --> Y", Formatter for SRT format will+-- therefore be rangeaf timecf.+--+-- @since 0.1.1.0+rangeaf :: Format r (Time -> r) -> Format r (Range -> r)+rangeaf x = accessed from x % " --> " <> accessed to x