Experimental IRC log happs-2008-07-13

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.

02:18:17<sm>evening all
02:20:28<sm>happs.org getting started seems nice and short, with sp
02:20:52<sm>I tried it just now and got a few errors and a hang, any ideas ? http://hpaste.org/8898
02:22:21<Saizan>yes, install hslogger
02:27:33<sm>Saizan: thanks, I cabal installed that and tried again and it built and ran
02:27:35<sm>nice
02:28:07<sm>the binary is called Main.exe, but what the heck
02:28:15<sm>are you using happs much ?
02:34:36<sm>that recompiling is pretty cool
03:18:49<sm>trying the cabal install of happs now, but I don't seem to have the memory to compile HAppS.Server.Facebook
03:31:15<sm>jeez.. took about 820M resident
16:45:37<mightybyte>I'm having trouble executing an IO action in the process of generating a response. Can anyone help me with that?
16:47:38<Saizan>you need to use liftIO maybe?
16:49:30<mightybyte>Ahhh, here's what I have
16:49:40<mightybyte>First, a little helper function
16:49:51<mightybyte>webToServer web = [anyRequest $ web]
16:50:11<mightybyte>genPage strParam = webToServer $ do ...
16:50:54<mightybyte>So the type of genPage is:
16:51:07<mightybyte>genPage :: t -> [ServerPartT IO Response]
16:52:03<Saizan>what was the type of anyRequest?
16:52:05<mightybyte>Inside, genPage, the problem line looks like "val <- ioAction strParam"
16:52:18<mightybyte>anyRequest :: (Monad m) => WebT m a -> ServerPartT m a
16:52:25<mightybyte>anyRequest is a HAppS function
16:52:40<Saizan>yeah
16:52:54<mightybyte>So is it just as simple as "val <- liftIO ioAction strParam"?
16:53:00<Saizan>you need to use "val <- liftIO (ioAction strParam)"
16:53:09<mightybyte>Ok
16:53:15<mightybyte>Where is liftIO defined?
16:53:35<Saizan>Control.Monad.Trans iirc
16:54:20<mightybyte>Bingo, that did it. Thanks.
16:54:33<Saizan>np
16:54:45<mightybyte>I probably could have eventually figured it out myself, but it would have taken me awhile.
16:55:53<Saizan>another similar function that you might need when dealing with monad transformers is "lift", which is simila
16:55:57<Saizan>r
16:58:03<mightybyte>Ok. This should get me rolling for awhile.

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