Skip to content

Commit 85854ea

Browse files
authored
Merge pull request #6 from fumieval/prepare-version-0.4
Prepare version 0.4
2 parents 103a943 + f8f9baf commit 85854ea

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## unreleased
22

3-
## 0.3.6
3+
## 0.4
44

5-
Supported GHC 9 and older
5+
* Supported GHC 9 and older
6+
* Changed the type of `mkUTCTime :: Day -> DiffTime -> UTCTime` to `mkUTCTime :: Year -> Month -> DayOfMonth -> Hour -> Minute -> Double -> UTCTime`. Use the `UTCTime` pattern synonym instead if needed.
7+
* Miscellaneous API additions and refactors

src/Data/Thyme/Format.hs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
{-# LANGUAGE RecordWildCards #-}
44
{-# LANGUAGE StandaloneDeriving #-}
55
{-# LANGUAGE ViewPatterns #-}
6-
{-# OPTIONS_GHC -fno-warn-orphans -Wno-unused-record-wildcards #-}
6+
{-# OPTIONS_GHC -fno-warn-orphans #-}
7+
#if __GLASGOW_HASKELL__ >= 810
8+
{-# OPTIONS_GHC -Wno-unused-record-wildcards #-}
9+
#endif
710

811
#include "thyme.h"
912

@@ -285,7 +288,7 @@ showsY = showsYear
285288

286289
instance FormatTime TimeOfDay where
287290
{-# INLINEABLE showsTime #-}
288-
showsTime TimeLocale {..} (TimeOfDay h m (DiffTime s)) = \ def c -> case c of
291+
showsTime TimeLocale{..} (TimeOfDay h m (DiffTime s)) = \ def c -> case c of
289292
-- aggregate
290293
'R' -> shows02 h . (:) ':' . shows02 m
291294
'T' -> shows02 h . (:) ':' . shows02 m . (:) ':' . shows02 si
@@ -839,7 +842,7 @@ instance ParseTime LocalTime where
839842

840843
instance ParseTime Day where
841844
{-# INLINE buildTime #-}
842-
buildTime tp@TimeParse {..}
845+
buildTime tp
843846
| tp ^. flag IsOrdinalDate = ordinalDate # buildTime tp
844847
| tp ^. flag IsGregorian = gregorian # buildTime tp
845848
| tp ^. flag IsWeekDate = weekDate # buildTime tp

thyme.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: thyme
2-
version: 0.3.6
2+
version: 0.4
33
synopsis: A faster time library
44
description:
55
@thyme@ is a performance-optimized rewrite of the excellent

0 commit comments

Comments
 (0)