Changelog for time-hourglass-0.3.0
Change log for time-hourglass
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to the Haskell Package Versioning Policy.
0.3.0 - 2025-08-01
- Drop support for GHC < 8.6.
- Add
Realinstance forElapsedSinceP. - Add
Readinstances forTimezoneOffsetandRead t => LocalTime t. - Export
fromRationalSecondsP,mkElapsedP, andfromRationalElapsedP, to facilitate creation ofElapsedPvalues from precise amounts of seconds or numbers of seconds and nanoseconds. - Test added to test suite for
toRational :: ElapsedSinceP -> RationalandfromRationalElapsedP. - Add
Format_DayYear3for a day of the year padded to 3 characters, represented by @"JJJ"@. - Change the types of fields of
TimeFormatFct: the parser and printer are in terms ofDateTimeandTimezoneOffset(rather than justDateTime). - In
localTimePrintetc, implementFormat_TimezoneNameandFormat_Fct. - In
localTimeParseEetc, implementFormat_Month,Format_DayYear,Format_Day,Format_TimezoneName,Format_Tz_OffsetandFormat_Fct. - Test added to test suite for
Format_Fctparsing and printing. - In
localTimeParseEetc,Format_Spacesnow parses one or more space-like characters (as previously documented), rather than one space character (as previously implemented). - Export
MJDEpoch, representing the Modified Julian Date (MJD) epoch. - Drop deprecated modules
Data.Hourglass.Compat,Data.Hourglass.Epoch,Data.Hourglass.TypesandSystem.Hourglass. Use modulesTime.Compat,Time.EpochandTime.Types. - Drop deprecated function
dateFromPOSIXEpoch. UsedataFromUnixEpoch. - Drop deprecated function
dateFromTAIEpoch. UsedateFromMJDEpoch. - Fix Haddock documentaton for
Format_Hours,Format_MinutesandFormat_Seconds; they all pad to 2 characters. - Fix Haddock documentaton for
Format_Millisecond,Format_MicroSecondandFormat_NanoSecond; they parse and print components only, and all pad to 3 characters. - Fix error message if a
Format_Textparse fails. - Add Haddock documentation for the
Stringinstance ofTimeFormat.
0.2.14 - 2025-07-24
- In test-suite and benchmark, depend on main library, drop dependency on
package
hourglass.
0.2.13 - 2025-07-23
- Drop support for GHC < 8.4.
- Move library modules to directory
srcand benchmark module to directorybenchmarks. - Move module
Example.Time.Compatto directoryexamples. - Expose module
Time.Epochand deprecate equivalent moduleData.Hourglass.Epoch. - Renamed non-exposed library modules under the
Time.*hierarchy. - Use
LANGUAGE PackageImportsin moduleExample.Time.Compat, allowingstack ghci examples/Example/Time/Compat.hs. - Eliminate the use of CPP to vary source code for different operating systems.
- Fix
other-modulesofbench-hourglassbenchmark. bench-hourglassbenchmark depends ontasty-bench, drop dependency ongauge.- Improve Haddock and other documentation.
- Export new
dateFromUnixEpochand deprecate identicaldateFromPOSIXEpochto name epoch consistently. - Export new
dateFromMJDEpochand deprecate identicaldateFromTAIEpochto fix the latter being a misnomer.
0.2.12 - 2025-07-21
- Rename
hourglass-0.2.12package astime-hourglass-0.2.12. - Cabal file specifies
cabal-version: 1.12(not>= 1.10). - Change maintainer field to
Mike Pilgrem <public@pilgrem.com>. - Add
bug-reportsfield to Cabal file. - Reset
CHANGELOG.md. - Update
README.mdbadges. - In test-suite
test-hourglassreplace use ofparseTime(removed from packagetime-1.10) withparseTimeM True.