Experimental IRC log happs-2007-04-02

Available formats: content-negotiated html turtle (see SIOC for the vocabulary)

Back to channel and daily index: content-negotiated html turtle

These logs are provided as an experiment in indexing discussions using IRCHub.py, Irc2RDF.hs, and SIOC.

00:00:46<spacecowboy_>hrm, just out of curiousity.. it seems that lookS and family reparse the request body/query string on each lookup.. am i reading the code right?
11:28:36<bvd>anybody here?
11:30:41<kaol>?users
11:30:41<lambdabot>Maximum users seen in #happs: 18, currently: 13 (72.2%), active: 3 (23.1%)
11:32:32<bvd>haha I was just checking out the lambdabot source about that command: http://www.cse.unsw.edu.au/~dons/lambdabot/Plugin/Seen.hs
11:33:46<bvd>Anyway, I have a quick question that I just posted to the HAppS mailinglist but maybe someone can asnwer it here. This is the mail: I'm trying to use HAppS for a web application that needs to communicate with a database via HaskellDB. I'm using the lastest HAppS (development version). I would like to know how I can perform IO inside one of my handlers in SimpleHTTP2.stdHTTP?
11:35:57<bvd>I know I must use liftIO but when I use it in a handler like this: h () GET $ ok $ \() () -> respond $ liftIO $ putStrLn "hello world" I get a 'Overlapping instances' error.
11:37:12<bvd>http://hpaste.org/1227
12:52:30<vegai>I believe you're using debugFilter and noState wrong, see http://www.haskell.org/haskellwiki/HAppS_tutorial#Hello_World
12:52:32<lambdabot>Title: HAppS tutorial - HaskellWiki
12:53:15<vegai>oh, actually... no you aren't.
12:53:19<vegai>hmm.
14:17:58<Saizan>bvd: have you seen addSideEffect?
14:18:20<bvd>No, grepping the source right now
14:19:10<Saizan>also, you can return an IO Result
14:19:54<Saizan>the problem start to arise when you want access to both IO and your state
14:20:19<bvd>I have no state at the moment so that's not a problem (for now)
14:22:08<bvd>Thanks for the tip of returning a IO Result... I tried to: respond $ putStrLn "Hello World" but that gave me an "overlapping instances" error. Now I will try to: respond $ do {putStrLn "Hello Wolrd"; return <Result value>}...
14:41:25<Saizan>you can't use "ok" though

Back to channel and daily index: content-negotiated html turtle