| Takusen-0.8.2: Database library with left-fold interface, for PostgreSQL, Oracle, SQLite, ODBC. | Contents | Index |
|
Database.Util | Portability | non-portable | Stability | experimental | Maintainer | oleg@pobox.com, alistair@abayley.org |
|
|
|
|
|
Description |
Utility functions. Mostly used in database back-ends, and tests.
|
|
Synopsis |
|
class Show a => MyShow a where | | | print_ :: (MonadIO m, MyShow a) => a -> m () | | mkUTCTime :: (Integral a, Real b) => a -> a -> a -> a -> a -> b -> UTCTime | | mkCalTime :: Integral a => a -> a -> a -> a -> a -> a -> CalendarTime | | int64ToDateParts :: Int64 -> (Int64, Int64, Int64, Int64, Int64, Int64) | | datePartsToInt64 :: (Integral a1, Integral a2, Integral a3, Integral a4, Integral a5, Integral a6) => (a1, a2, a3, a4, a5, a6) -> Int64 | | calTimeToInt64 :: CalendarTime -> Int64 | | int64ToCalTime :: Int64 -> CalendarTime | | int64ToUTCTime :: Int64 -> UTCTime | | wordsBy :: (Char -> Bool) -> String -> [String] | | skipNonMatch :: (Char -> Bool) -> String -> [String] | | positions :: Eq a => [a] -> [a] -> [Int] | | pgDatetimetoUTCTime :: String -> UTCTime | | pgDatetimetoCalTime :: String -> CalendarTime | | pgDatetimeToParts :: String -> (Int, Int, Int, Int, Int, Double, Int) | | utcTimeToIsoString :: (Integral a, Integral b) => UTCTime -> String -> (a -> a) -> (b -> String) -> String | | utcTimeToPGDatetime :: UTCTime -> String | | utcTimeToIsoDatetime :: UTCTime -> String | | utcTimeToOdbcDatetime :: UTCTime -> String | | calTimeToPGDatetime :: CalendarTime -> String |
|
|
Documentation |
|
class Show a => MyShow a where |
| Methods | | | Instances | |
|
|
print_ :: (MonadIO m, MyShow a) => a -> m () |
Like print, except that Strings are not escaped or quoted.
|
|
mkUTCTime :: (Integral a, Real b) => a -> a -> a -> a -> a -> b -> UTCTime |
Convenience for making UTCTimes. Assumes the time given is already UTC time
i.e. there's no timezone adjustment.
|
|
mkCalTime :: Integral a => a -> a -> a -> a -> a -> a -> CalendarTime |
|
int64ToDateParts :: Int64 -> (Int64, Int64, Int64, Int64, Int64, Int64) |
|
datePartsToInt64 :: (Integral a1, Integral a2, Integral a3, Integral a4, Integral a5, Integral a6) => (a1, a2, a3, a4, a5, a6) -> Int64 |
|
calTimeToInt64 :: CalendarTime -> Int64 |
|
int64ToCalTime :: Int64 -> CalendarTime |
|
int64ToUTCTime :: Int64 -> UTCTime |
|
wordsBy :: (Char -> Bool) -> String -> [String] |
|
skipNonMatch :: (Char -> Bool) -> String -> [String] |
|
positions :: Eq a => [a] -> [a] -> [Int] |
|
pgDatetimetoUTCTime :: String -> UTCTime |
|
pgDatetimetoCalTime :: String -> CalendarTime |
|
pgDatetimeToParts :: String -> (Int, Int, Int, Int, Int, Double, Int) |
|
utcTimeToIsoString :: (Integral a, Integral b) => UTCTime -> String -> (a -> a) -> (b -> String) -> String |
|
utcTimeToPGDatetime :: UTCTime -> String |
|
utcTimeToIsoDatetime :: UTCTime -> String |
|
utcTimeToOdbcDatetime :: UTCTime -> String |
|
calTimeToPGDatetime :: CalendarTime -> String |
Assumes CalendarTime is also UTC i.e. ignores ctTZ component.
|
|
Produced by Haddock version 0.7 |