packages feed

time 1.11.1.1 → 1.11.1.2

raw patch · 9 files changed

+99/−45 lines, 9 filesdep −unix

Dependencies removed: unix

Files

LICENSE view
@@ -1,4 +1,4 @@-TimeLib is Copyright (c) Ashley Yakeley and contributors, 2004-2020. All rights reserved.+TimeLib is Copyright (c) Ashley Yakeley and contributors, 2004-2021. All rights reserved. Certain sections are Copyright 2004, The University Court of the University of Glasgow. All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
changelog.md view
@@ -1,14 +1,19 @@ # Change Log -## [1.11.1.1]+## [1.11.1.2] - 2021-04-24+- fix cabal file+- correct "license" field in cabal file+- add dates to changelog entries++## [1.11.1.1] - 2020-12-09 - fix module Safe status -## [1.11.1]+## [1.11.1] - 2020-11-23 - all modules Safe or Trustworthy - fix NFData instances for DiffTime, NominalDiffTime, TimeOfDay - add missing Ix, Enum, NFData instances to DayOfWeek, CalendarDiffDays, CalendarDiffTime, Month, Quarter, QuarterOfYear -## [1.11]+## [1.11] - 2020-10-14 - new calendrical type synonyms and abstract constructors - new Month type, with appropriate functions - new QuarterOfYear and Quarter type, with appropriate functions@@ -18,7 +23,7 @@ - add instance Read DiffTime (and NominalDiffTime) - change instance Read UTCTime to allow omitted timezone -## [1.10]+## [1.10] - 2020-03-13 - remove deprecated functions parseTime, readTime, readsTime - deprecate iso8601DateFormat - parsing: fix %_Q %-Q %_q %-q@@ -27,19 +32,19 @@ - change internal members of ParseTime to allow newtype-deriving - new functions (aliases) pastMidnight & sinceMidnight -## [1.9.3]+## [1.9.3] - 2019-05-20 - documentation fixes -## [1.9.2]+## [1.9.2] - 2018-08-01 - add Data and Typeable instance for CalendarDiffDays and CalendarDiffTime - "@since" annotations for everything after 1.9 - fix import issue with GHC 8.6 -## [1.9.1]+## [1.9.1] - 2018-02-27 - new functions secondsToNominalDiffTime & nominalDiffTimeToSeconds - expose FormatTime and ParseTime in Data.Time.Format.Internal -## [1.9]+## [1.9] - 2018-01-25 - new conversion functions timeToDaysAndTimeOfDay & daysAndTimeOfDayToTime - new DayOfWeek type - new CalendarDiffDays and CalendarDiffTime types@@ -52,37 +57,37 @@ - parsing: reject invalid (and empty) time-zones with %z and %Z - parsing: reject invalid hour/minute/second specifiers -## [1.8.0.4]+## [1.8.0.4] - 2018-01-09 - Fix "show minBound" bug - haddock: example for parseTimeM -## [1.8.0.3]+## [1.8.0.3] - 2017-08-04 - Add "Quick start" documentation -## [1.8.0.2]+## [1.8.0.2] - 2017-05-13 - Fix behaviour of %Q in format -## [1.8.0.1]+## [1.8.0.1] - 2017-03-11 - Get building on 32 bit machine -## [1.8]+## [1.8] - 2017-02-14 - Added SystemTime - Data.Time.Format: allow padding widths in specifiers for formatting (but not parsing) - Test: use tasty, general clean-up - Test: separate out UNIX-specific tests, so the others can be run on Windows - Clean up haddock. -## [1.7.0.1]+## [1.7.0.1] - 2016-12-19 - Fix bounds issue in .cabal file -## [1.7]+## [1.7] - 2016-11-19 - Data.Time.Clock.TAI: change LeapSecondTable to LeapSecondMap with Maybe type; remove parseTAIUTCDATFile -## [1.6.0.1]+## [1.6.0.1] - 2016-05-07 - Get building with earlier GHC versions - Set lower bound of base correctly -## [1.6]+## [1.6] - 2015-12-20  ### Added - FormatTime, ParseTime, Show and Read instances for UniversalTime@@ -96,4 +101,48 @@ - Parsing functions now reject invalid dates - Various documentation fixes -## [1.5.0.1]+## [1.5.0.1] - 2014-12-13++## [1.5] - 2014-09-10++## [1.4.2] - 2014-03-03++## [1.4.1] - 2013-06-24++## [1.4.0.2] - 2012-11-25++## [1.4.0.1] - 2011-10-31++## [1.4] - 2011-09-13++## [1.3] - 2011-08-10++## [1.2.0.5] - 2011-05-11++## [1.2.0.4] - 2011-02-03++## [1.2.0.3] - 2010-06-22++## [1.2.0.2] - 2010-04-26++## [1.2.0.1] - 2010-04-11++## [1.2] - 2010-04-11++## [1.1.4] - 2009-07-17++## [1.1.3] - 2009-06-01++## [1.1.2.4] - 2009-04-17++## [1.1.2.3] - 2009-01-17++## [1.1.2.2] - 2008-10-11++## [1.1.2.1] - 2008-06-19++## [1.1.2.0] - 2007-11-03++## [1.1.1] - 2007-04-22++## [1.0] - 2006-11-02
configure view
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles.-# Generated by GNU Autoconf 2.69 for Haskell time package 1.10.+# Generated by GNU Autoconf 2.69 for Haskell time package 1.11.1.2. # # Report bugs to <ashley@semantic.org>. #@@ -580,8 +580,8 @@ # Identity of this package. PACKAGE_NAME='Haskell time package' PACKAGE_TARNAME='time'-PACKAGE_VERSION='1.10'-PACKAGE_STRING='Haskell time package 1.10'+PACKAGE_VERSION='1.11.1.2'+PACKAGE_STRING='Haskell time package 1.11.1.2' PACKAGE_BUGREPORT='ashley@semantic.org' PACKAGE_URL='' @@ -1238,7 +1238,7 @@   # Omit some internal or obsolete options to make the list less imposing.   # This message is too long to be a string in the A/UX 3.1 sh.   cat <<_ACEOF-\`configure' configures Haskell time package 1.10 to adapt to many kinds of systems.+\`configure' configures Haskell time package 1.11.1.2 to adapt to many kinds of systems.  Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1300,7 +1300,7 @@  if test -n "$ac_init_help"; then   case $ac_init_help in-     short | recursive ) echo "Configuration of Haskell time package 1.10:";;+     short | recursive ) echo "Configuration of Haskell time package 1.11.1.2:";;    esac   cat <<\_ACEOF @@ -1386,7 +1386,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then   cat <<\_ACEOF-Haskell time package configure 1.10+Haskell time package configure 1.11.1.2 generated by GNU Autoconf 2.69  Copyright (C) 2012 Free Software Foundation, Inc.@@ -1858,7 +1858,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by Haskell time package $as_me 1.10, which was+It was created by Haskell time package $as_me 1.11.1.2, which was generated by GNU Autoconf 2.69.  Invocation command line was    $ $0 $@@@ -4193,7 +4193,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log="-This file was extended by Haskell time package $as_me 1.10, which was+This file was extended by Haskell time package $as_me 1.11.1.2, which was generated by GNU Autoconf 2.69.  Invocation command line was    CONFIG_FILES    = $CONFIG_FILES@@ -4246,7 +4246,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\-Haskell time package config.status 1.10+Haskell time package config.status 1.11.1.2 configured by $0, generated by GNU Autoconf 2.69,   with options \\"\$ac_cs_config\\" 
configure.ac view
@@ -1,4 +1,4 @@-AC_INIT([Haskell time package], [1.11.1.1], [ashley@semantic.org], [time])+AC_INIT([Haskell time package], [1.11.1.2], [ashley@semantic.org], [time])  # Safety check: Ensure that we are in the correct source directory. AC_CONFIG_SRCDIR([lib/include/HsTime.h])
lib/include/HsTimeConfig.h view
@@ -69,7 +69,7 @@ #define PACKAGE_NAME "Haskell time package"  /* Define to the full name and version of this package. */-#define PACKAGE_STRING "Haskell time package 1.10"+#define PACKAGE_STRING "Haskell time package 1.11.1.2"  /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "time"@@ -78,7 +78,7 @@ #define PACKAGE_URL ""  /* Define to the version of this package. */-#define PACKAGE_VERSION "1.10"+#define PACKAGE_VERSION "1.11.1.2"  /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1
test/unix/Main.hs view
@@ -5,7 +5,7 @@ import Test.Tasty  tests :: TestTree-tests = testGroup "Time" [testGroup "Format" [testFormat], testGroup "LocalTime" [testTimeZone]]+tests = testGroup "Time" [testGroup "Format" testFormat, testGroup "LocalTime" [testTimeZone]]  main :: IO () main = defaultMain tests
test/unix/Test/Format/Format.hs view
@@ -244,6 +244,10 @@     , formatUnitTest "%-5Q" 0.37 ".37   "     ] -testFormat :: TestTree-testFormat =-    localOption (QuickCheckTests 10000) $ testGroup "testFormat" $ testCompareFormat ++ testCompareHashFormat ++ testQs+strftimeHasGNUExts :: Bool+strftimeHasGNUExts = unixFormatTime "%_6Y" utc (UTCTime (fromGregorian 1980 1 1) 0) == "  1980"++testFormat :: [TestTree]+testFormat = if strftimeHasGNUExts+    then pure $ localOption (QuickCheckTests 10000) $ testGroup "testFormat" $ testCompareFormat ++ testCompareHashFormat ++ testQs+    else []
test/unix/Test/LocalTime/TimeZone.hs view
@@ -3,7 +3,7 @@     ) where  import Data.Time-import System.Posix.Env (putEnv)+import System.Environment (setEnv) import Test.Tasty import Test.Tasty.HUnit @@ -11,8 +11,8 @@ testTimeZone =     testCase "getTimeZone respects TZ env var" $ do         let epoch = UTCTime (ModifiedJulianDay 57000) 0-        putEnv "TZ=UTC+0"+        setEnv "TZ" "UTC+0"         zone1 <- getTimeZone epoch-        putEnv "TZ=EST+5"+        setEnv "TZ" "EST+5"         zone2 <- getTimeZone epoch         assertBool "zone not changed" $ zone1 /= zone2
time.cabal view
@@ -1,7 +1,8 @@+cabal-version:  >=1.10 name:           time-version:        1.11.1.1+version:        1.11.1.2 stability:      stable-license:        BSD3+license:        BSD2 license-file:   LICENSE author:         Ashley Yakeley maintainer:     <ashley@semantic.org>@@ -11,7 +12,6 @@ description:    Time, clocks and calendars category:       Time build-type:     Configure-cabal-version:  >=1.10 tested-with:     GHC == 8.0.2,     GHC == 8.2.2,@@ -76,7 +76,7 @@         Data.Time.Format.ISO8601,         Data.Time     other-modules:-        Data.Format+        Data.Format,         Data.Time.Calendar.Types,         Data.Time.Calendar.Private,         Data.Time.Calendar.Days,@@ -96,7 +96,7 @@         Data.Time.Clock.Internal.UTCDiff,         Data.Time.LocalTime.Internal.TimeZone,         Data.Time.LocalTime.Internal.TimeOfDay,-        Data.Time.LocalTime.Internal.CalendarDiffTime+        Data.Time.LocalTime.Internal.CalendarDiffTime,         Data.Time.LocalTime.Internal.LocalTime,         Data.Time.LocalTime.Internal.ZonedTime,         Data.Time.Format.Parse,@@ -110,6 +110,9 @@         install-includes:             HsTime.h     else+        -- # requires cabal 3, see #145, #146+        --autogen-includes:+        --    HsTimeConfig.h         install-includes:             HsTime.h             HsTimeConfig.h@@ -209,8 +212,6 @@         tasty,         tasty-hunit,         tasty-quickcheck-    if !os(windows)-        build-depends: unix     main-is: Main.hs     other-modules:         Test.TestUtil