packages feed

hasql-pool-0.8.0.3 / library / Hasql / Pool / TimeExtras / Conversions.hs

module Hasql.Pool.TimeExtras.Conversions whereimport Hasql.Pool.Preludeclass ToMilliseconds a where  toMilliseconds :: a -> Intinstance ToMilliseconds SystemTime where  toMilliseconds (MkSystemTime s ns) =    fromIntegral s * 1000 + fromIntegral (div ns 1000000)