ContentsIndex
Database.Util
Portabilitynon-portable
Stabilityexperimental
Maintaineroleg@pobox.com, alistair@abayley.org
Description
Utility functions. Mostly used in database back-ends, and tests.
Synopsis
class Show a => MyShow a where
show_ :: a -> String
print_ :: (MonadIO m, MyShow a) => a -> m ()
mkUTCTime :: Integral a => a -> a -> a -> a -> a -> a -> UTCTime
int64ToCalTime :: Int64 -> CalendarTime
calTimeToInt64 :: CalendarTime -> Int64
int64ToUTCTime :: Int64 -> UTCTime
Documentation
class Show a => MyShow a where
Methods
show_ :: a -> String
show/hide Instances
print_ :: (MonadIO m, MyShow a) => a -> m ()
Like print, except that Strings are not escaped or quoted.
mkUTCTime :: Integral a => a -> a -> a -> a -> a -> a -> UTCTime
Convenience for making UTCTimes. Assumes the time given is already UTC time i.e. there's no timezone adjustment.
int64ToCalTime :: Int64 -> CalendarTime
calTimeToInt64 :: CalendarTime -> Int64
int64ToUTCTime :: Int64 -> UTCTime
Produced by Haddock version 0.7