From f95e027e51f53b7e45b12addda7f887911716aca Mon Sep 17 00:00:00 2001 From: Harri Nieminen Date: Sat, 1 Apr 2023 13:51:40 +0300 Subject: [PATCH 1/2] Fix typos Found by codespell --- Data/Time/Zones.hs | 2 +- benchmarks/benchGreg.hs | 2 +- tests/testTZ.hs | 2 +- tz.cabal | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Data/Time/Zones.hs b/Data/Time/Zones.hs index cd2aaed..ca9daab 100644 --- a/Data/Time/Zones.hs +++ b/Data/Time/Zones.hs @@ -148,7 +148,7 @@ instance NFData FromLocal where -- As a consequence, a local time might correspond to two different -- points in time, but never three. -- --- TODO(klao): check that these assuptions hold. +-- TODO(klao): check that these assumptions hold. localToPOSIX :: TZ -> Int64 -> FromLocal {-# INLINABLE localToPOSIX #-} localToPOSIX (TZ trans diffs _) !lTime = res diff --git a/benchmarks/benchGreg.hs b/benchmarks/benchGreg.hs index e51a881..66e33e4 100644 --- a/benchmarks/benchGreg.hs +++ b/benchmarks/benchGreg.hs @@ -81,7 +81,7 @@ toOrdinalDateDivMod !mjd = YD year yd -- So, to find out the calendar year for a given day, we calculate -- which nominal year does its start fall. And, if we are not too -- close to the end of year, we have the right calendar --- year. Othewise, we just check whether it falls within the next +-- year. Otherwise, we just check whether it falls within the next -- calendar year. -- -- Notes: to make the reasoning simpler and more efficient ('quot' is diff --git a/tests/testTZ.hs b/tests/testTZ.hs index f28636d..f15c550 100644 --- a/tests/testTZ.hs +++ b/tests/testTZ.hs @@ -36,7 +36,7 @@ case_Budapest_LocalToUTC = do -- Handle time in winter->summer transition: localTimeToUTCFull tz (mkLocal 2014 03 30 02 15 15) @?= LTUNone (mkUTC 2014 03 30 01 15 15) zWinter - -- That utc time is acually in dst already: + -- That utc time is actually in dst already: localTimeToUTCFull tz (mkLocal 2014 03 30 03 15 15) @?= LTUUnique (mkUTC 2014 03 30 01 15 15) zSummer diff --git a/tz.cabal b/tz.cabal index ca30f29..f14e0a8 100644 --- a/tz.cabal +++ b/tz.cabal @@ -17,7 +17,7 @@ Description: in a /pure/ and /efficient/ way. . We also provide platform-independent and/or compiled-in access to - the standard Time Zone Dabase by the means of the companion @tzdata@ + the standard Time Zone Database by the means of the companion @tzdata@ package . . The package is currently in an alpha phase, I'm still experimenting From b142dccd226ad81bf7a28ea7c7415cf11ca7c98a Mon Sep 17 00:00:00 2001 From: Harri Nieminen Date: Sat, 1 Apr 2023 13:51:59 +0300 Subject: [PATCH 2/2] http -> https --- tz.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tz.cabal b/tz.cabal index f14e0a8..c8a08e4 100644 --- a/tz.cabal +++ b/tz.cabal @@ -18,7 +18,7 @@ Description: . We also provide platform-independent and/or compiled-in access to the standard Time Zone Database by the means of the companion @tzdata@ - package . + package . . The package is currently in an alpha phase, I'm still experimenting with different ideas wrt. scope\/API\/implementation\/etc. All