haskell / time

A time library
http://hackage.haskell.org/package/time
Other
118 stars 78 forks source link

[#179] Add HasDays type class and instances #180

Closed sestrella closed 2 years ago

sestrella commented 2 years ago

Fixes: #179

AshleyYakeley commented 2 years ago

I would prefer a more general approach, that treats periods of days (Day, Month, Quarter, Year) in a consistent fashion. I may do this later.

sestrella commented 2 years ago

The problem with ci / build-win (9.0.1) (pull_request) seems to be related to tasty-quickcheck-0.10.1.2:

Failed to install tasty-quickcheck-0.10.1.2
Build log ( C:\Users\runneradmin\AppData\Roaming\cabal\logs\ghc-9.0.1\tasty-quickcheck-0.10.1.2-HbsTrgH487893w8tD2zv3Z.log ):
Configuring tasty-quickcheck-0.10.1.2...
C:\Users\RUNNER~1\AppData\Local\Temp\ghc21F8.o.tmp: renameFile:renamePath:MoveFileEx "\\\\?\\C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\ghc21F8.o.tmp" Just "\\\\?\\C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\ghc21F8.o": does not exist (The system cannot find the file specified.)
AshleyYakeley commented 2 years ago

I'll have a look at this next weekend. Most likely I will merge it and then make further changes.

sestrella commented 2 years ago

@AshleyYakeley thank you for the heads up. Meanwhile I'm planning to add more instances for HasDays one for Day, Month and Year to be more specific

AshleyYakeley commented 2 years ago

Thanks!