Experimental IRC log happs-2008-03-18

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.

04:17:09<porrifolius>looks like HAppS-HTTP repos has the same stuff in it as HAppS-Server repos. We should be using Server repos now, right?
09:28:42<Xaioabi>hello
12:55:34<Lemmih>Xaioabi: Hi.
14:50:35<Lemmih>The distributed chat example is now in HAppS-Server.
15:20:27<Saizan>oh, so the exchanged events are exposed to the user
15:27:31<Lemmih>Yeah.
20:06:48<mae>so yeah, what is the proper way to add a header
20:07:36<Lemmih>modifyResponse $ addHeader "header" "value"
20:08:09<mae>i have this code, which doesnt work: http://hpaste.org/6481
20:09:22<Lemmih>You shouldn't need to set the content type manually.
20:10:05<mae>http://hpaste.org/6482 <- error
20:11:25<Lemmih>HTML is automatically marked as text/html.
20:11:53<mae>ah but this is xml
20:11:58<mae>well it renders as xml
20:12:29<Lemmih>Most likely because you're outputting it as a string.
20:12:54<Lemmih>Don't convert to string before outputting anything.
20:12:58<mae>k
20:13:12<mae>thank you
20:13:14<mae>very useful ; )
20:13:23<mae>i like happs
20:17:56<mae>well it could be that
20:18:05<mae>toHTMLForm outputs [Element]
20:18:14<mae>which goes to xml
20:19:58<Lemmih>Ah.
20:20:16<Lemmih>I'd recommend wrapping it in a newtype.
20:20:32<mae>how do i make the newtype render html
20:21:29<Lemmih>Make it an instance of ToMessage.
20:22:06<Lemmih>instance ToMessage YourType where toContentType _ = "text/html"; toResponse (YourType xml) = toResponse xml
20:25:20<Lemmih>(It is also possible to use setHeader/addHeader if you really want to)
21:29:58<MarcWeber>Can you give me a hint how this declaration is to be read ?
21:30:03<MarcWeber>http://rafb.net/p/DqtHKI10.html
21:33:46<MarcWeber>classname is a, and it must be an instance of Serialize and There must be an instance SubHandlers (Dependencies a) as well.
21:35:19<MarcWeber>But why this type Dependencies a ?
21:35:33<MarcWeber>I know about type Foo = Bar
21:36:00<MarcWeber>Any ideas where to find some more material to read about this?
21:36:49<Lemmih>http://www.haskell.org/haskellwiki/GHC/Type_families
21:37:13<Lemmih>It's not tricky at all.
21:37:43<Lemmih>'initialValue' is a function that is a member of Component.
21:37:51<Lemmih>'Dependencies' is a type that is a member of Component.
21:38:09<MarcWeber>Thanks. I've skimmed the whole ghc manual and found nothing
21:38:12<MarcWeber>ACTION is busy reading
21:39:12<Lemmih>'initialValue' can be any value. 'Dependencies' can be any type.

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