Questions tagged [haskell-thyme]

3 questions
2
votes
1 answer

How do I create a UTCTime from Int values, using the thyme library in Haskell?

I've got a year, month, day, hour and minute value (all of them are of type Int) - how can I convert these to a UTCTime or UniversalTime?
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
1
vote
1 answer

Couldn't match type ‘time-1.8.0.2:Data.Time.Clock.Internal.UTCTime.UTCTime’ with ‘UTCTime’

I don't understand why I am getting this error using the thyme library: λ import qualified Data.Thyme.Format as ABC (formatTime) λ import qualified…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
0
votes
2 answers

How can I get a Binary instance of the thyme package's UTCTime data type?

I'd like to be able to serialize CommandRecord into binary to be able to save it to a file. However my naive approach of just doing: instance Binary CommandRecord does not work due the below error*. What approach can I use to achieve the above?…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286