External Publication
Visit Post

[ANN] type safe diffUTCTime

Haskell Community [Unofficial] March 9, 2026
Source

So… do you believe this is a better solution than testing the application and, perhaps, logging the delta time?


dyaitskov:

The STM package is shipped without a function to get current time.

Have you read the documentation to unsafeIOToSTM?

dyaitskov:

Let’s consider a situation where we read an integer from a queue, perform a lookup of a timestamp based on that integer, and add current delta time to a mutable variable within the same STM transaction.

Not clear when this situation might arise, please elaborate.

Discussion in the ATmosphere

Loading comments...