juhp / koji-tool

Koji buildsystem CLI tool to query tasks, install build rpms, and check buildlog sizes
https://hackage.haskell.org/package/koji-tool
Other
11 stars 0 forks source link

time-1.8 has diffUTCTime #3

Closed juhp closed 2 years ago

juhp commented 2 years ago

test older time

juhp commented 2 years ago

Confirmed again that it fails with time-1.8

src/Tasks.hs:243:34: error:
Error:     • No instance for (FormatTime NominalDiffTime)
        arising from a use of ‘formatTime’
    • In the second argument of ‘(++)’, namely
        ‘formatTime defaultTimeLocale "%Hh %Mm %Ss" dur’
      In the expression:
        "current duration: "
          ++ formatTime defaultTimeLocale "%Hh %Mm %Ss" dur
      In the expression:
        ["current duration: "
           ++ formatTime defaultTimeLocale "%Hh %Mm %Ss" dur |
           Just start <- [mstart], let dur = diffUTCTime now start]
    |
243 |         ["current duration: " ++ formatTime defaultTimeLocale "%Hh %Mm %Ss" dur | Just start <- [mstart],  let dur = diffUTCTime now start]
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^