#haskell - Mon 19 Feb 2007 between 20:06 and 20:13

NY Lost Funds



mbishopsorear: any idea how to do this? Time.getClockTime returns a formatted day/date/time
jerpejo, it's not totaly unrelated, it's actually quite realted =]
but no i havn't looked at it
figure i should try and fail first, before looking at other peoples code
=]
sorear@hoogle IO TOD
lambdabotNo matches, try a more general search
sorear@hoogle IO ClockTime
lambdabotTime.getClockTime :: IO ClockTime
Directory.getModificationTime :: FilePath -> IO ClockTime
SamBis anyone here running powerpc64-unknown-linux-gnu?
mbishop:t Time.getClockTime
lambdabotIO System.Time.ClockTime
SamBor able to run it?
xicjer: Writer monad might be a good choice
sorearmbishop: in GHC the constructor for ClockTime is exported, it is called TOD, it contains a epoch time and picoseconds ... it's a haskell struct timespec
mbishopI have no idea what that means :)
?hoogle TOD
lambdabotSystem.Time.TOD :: Integer -> Integer -> ClockTime
Data.Dynamic.toDyn :: Typeable a => a -> Dynamic
Char.intToDigit :: Int -> Char
SamBanyone have PowerPC linux at all?
jerSamB, yup
32 though not 64
SamBah.
xicjer: maybe this kind of structure is good for you:
chessguymbishop, that's a typical reaction when sorear talks :)
mbishopsorear: apparently TOD takes the epoch time as an argument
SamBI heard that GMP doesn't work right on typical powerpc64 systems...
xic> execWriter $ do { tell "hello, "; tell "world!" }
lambdabot"hello, world!"
mbishopor two, to be exact
to give you a specific date
maukedo tell!
actionchessguy rolls his eyes at mauke
chessguyrolls his eyes at mauke
mbishopPrelude System.Time> TOD 0 0
Wed Dec 31 18:00:00 CST 1969
jerxic, hrmm... that does actually seem like it might be helpful
maukechessguy: you rolled a 7!
chessguyshame i don't have that much luck at the casinos

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 

IrcArchive

NY Lost Funds