#haskell - Thu 15 Mar 2007 between 11:17 and 11:26

NY Lost Funds



ailndxhttp://hpaste.org/1002 the hPutStr doesnt seem to work, the bot dont disconnect before the program exits
gh_thanks!
Caleailndx: maybe hFlush h
dons?docs Data.Map
lambdabothttp://haskell.org/ghc/docs/latest/html/libraries/base/Data-Map.html
Caleailndx: just in case it's block buffered or something
ailndxdo i put that just before hPutStr?
Caleor hSetBuffering h LineBuffering
after
if you're setting the buffering, then when the handle is created
if you're flushing the handle, then after you do the output
ailndxoki
how do i separeate those 2 functions?
"quit" -> do hPutStr h ("QUIT :Exiting\r\n") hFlush h
wait nvm
Calethe hFlush h should be on the following line
you could use a ; if you want
It's actually probably a good idea to set the handle to be line buffered given that it's going to be an IRC client.
ailndxokay, and that i do .. where?
allbery_bzbrown: rebuild with SplitObj=No
ailndxor wait, is that so good? what if i want to type 2 lines that should be sent as one
quicksilverCale: explicit close should always flush
Caleailndx: well, I suppose
quicksilverat least, that's certainly unix semantics, I'm assuming it's haskell too
allbery_b(apparently if you use SplitObj the architecture flag isn't passed on, so it dies on sparcv9 instructions. there's a thread on glasgow-haskell-users about it)
ailndxthe hFlush h, didnt work
it didnt disconnect
Caleer, okay
I don't know what it is then.
ailndxwell i'll try to remove the exit, and see if the disconnection function works
quicksilverailndx: does one of the pastes have the complete source code in it?
ailndxjust have to wait a few min for it to disconnect by ping first :/
quicksilver: naah
quicksilverailndx: which one has 'most' of it?
actionallbery_b wonders if he wants to tackle building ghc for solaris
allbery_bwonders if he wants to tackle building ghc for solaris
ailndxquicksilver: that would be the dons Roll_your_own_IRC_bot, which is not exactly like mine but similar
actionchessguy starts a pot of coffee for allbery_b
chessguystarts a pot of coffee for allbery_b
quicksilverailndx: well I suspect you're not closing some of the handles that you open
allbery_bheh. screen exists for a reason :)
chessguyscreen?

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 

IrcArchive

NY Lost Funds