mgsloan / store

Fast binary serialization in Haskell
MIT License
109 stars 35 forks source link

Build failure with time >= 1.11 #162

Closed sjakobi closed 2 years ago

sjakobi commented 2 years ago
src/Data/Store/Internal.hs:800:30: error:
    • Not in scope: type constructor or class ‘Time.FirstWeekType’
      Neither ‘Data.Time’, ‘Data.Time.Calendar.Quarter’,
              ‘Data.Time.Clock.System’,
              ‘Data.Time.Clock.TAI’ nor ‘Data.Time.Format.ISO8601’ exports ‘FirstWeekType’.
    • In the Template Haskell quotation
        [d| instance Store a => Deriving (Store (Complex a))
            instance Store a => Deriving (Store (Identity a))
            instance Deriving (Store All)
            instance Deriving (Store Any)
            instance Deriving (Store Void)
            instance Deriving (Store Bool)
            instance (Store a, Store b) => Deriving (Store (Either a b))
            instance Deriving (Store Time.AbsoluteTime)
            instance Deriving (Store Time.Day)
            instance Deriving (Store Time.LocalTime)
            instance Deriving (Store Time.TimeOfDay)
            instance Deriving (Store Time.TimeZone)
            instance Deriving (Store Time.UTCTime)
            instance Deriving (Store Time.UniversalTime)
            instance Deriving (Store Time.ZonedTime)
            instance Deriving (Store Time.TimeLocale)
            instance Deriving (Store Time.SystemTime)
            instance Deriving (Store Time.CalendarDiffDays)
            instance Deriving (Store Time.CalendarDiffTime)
            instance Deriving (Store Time.FormatExtension)
            instance Deriving (Store Time.DayOfWeek)
            instance Deriving (Store Time.FirstWeekType)
            instance Deriving (Store Time.Quarter)
            instance Deriving (Store Time.QuarterOfYear) |]
      In the untyped splice:
        $(derive
            [d| instance Store a => Deriving (Store (Complex a))
                instance Store a => Deriving (Store (Identity a))
                instance Deriving (Store All)
                instance Deriving (Store Any)
                instance Deriving (Store Void)
                instance Deriving (Store Bool)
                instance (Store a, Store b) => Deriving (Store (Either a b))
                instance Deriving (Store Time.AbsoluteTime)
                instance Deriving (Store Time.Day)
                instance Deriving (Store Time.LocalTime)
                instance Deriving (Store Time.TimeOfDay)
                instance Deriving (Store Time.TimeZone)
                instance Deriving (Store Time.UTCTime)
                instance Deriving (Store Time.UniversalTime)
                instance Deriving (Store Time.ZonedTime)
                instance Deriving (Store Time.TimeLocale)
                instance Deriving (Store Time.SystemTime)
                instance Deriving (Store Time.CalendarDiffDays)
                instance Deriving (Store Time.CalendarDiffTime)
                instance Deriving (Store Time.FormatExtension)
                instance Deriving (Store Time.DayOfWeek)
                instance Deriving (Store Time.FirstWeekType)
                instance Deriving (Store Time.Quarter)
                instance Deriving (Store Time.QuarterOfYear) |])
    |
800 |     instance Deriving (Store Time.FirstWeekType)
    |                              ^^^^^^^^^^^^^^^^^^
cabal: Failed to build store-0.7.12
sjakobi commented 2 years ago

This seems to affect v0.7.10 and up.

As a Hackage trustee, I've created revisions for these versions that should prevent users from getting these errors. See e.g. https://hackage.haskell.org/package/store-0.7.12/revisions/.