Experimental IRC log happs-2007-03-23

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:51:42<alexj>+am thinking about flattening the happs module hierarchy a bit. I'd like to have HAppS.HTTP rather than HAppS.Protocols.HTTP or perhaps if we are really being serious it would be Network.HAppS.HTTP but I've never been entirely comfortable with that module name format.
02:45:07<dufflebunk>+alexj: does the P in HTTP stand for Protocol already?
02:45:34<sorear>+yes
02:45:37<sorear>+@vera HTTP
02:45:38<lambdabot>+*** "http" vera "Virtual Entity of Relevant Acronyms (Version 1.9, June 2002)"
02:45:39<lambdabot>+HTTP
02:45:39<lambdabot>+ HyperText Transfer Protocol (WWW, RFC 2068)
02:45:39<lambdabot>+
10:42:11<tuukkah>is it intentional that hackagedb only has happs 0.8.4?
20:08:46<jfoutz>-where should i look for an xml example, other than the tutorial? That one doesn't seem to compile. Is there maybe something tucked away in simplehttp2?
21:17:32<shapr>+shazam!
21:17:43<alexj>-shapr: welcome back.
21:18:06<shapr>+hiya!
21:18:12<shapr>+That took longer than I expected.
21:18:16<shapr>+But I have meds now! Yay!
21:18:40<shapr>+There was one particularly exciting moment when a spare tire came off of somebody's trailer on the interstate.
21:19:37<shapr>+It nearly tagged my car as I was taking the exit off the interstate, but creative dodging was successful.
21:20:57<alexj>-zowee. you making progress with lemmih tonight or has he gone to bed?
21:22:48<shapr>+He's marked away and it's 10:22pm there, so likely we're starting at 8am tomorrow.
21:23:21<shapr>+jfoutz: What sort of xml example do you want?
21:23:43<jfoutz>-well, the one in the tutorial refrences "plain"
21:24:02<jfoutz>-but that's not an exported function, or a function at all, as near as i can tell from the source.
21:24:03<shapr>+jfoutz: Tutorial bugs are known but there's some especially nifty code we're trying to sprint towards completion by Monday.
21:24:13<jfoutz>-i see
21:24:20<jfoutz>-well, get running i suppose :)
21:24:28<shapr>+Yup, you no longer need to use plain, plain_xml, etc to denote the return type.
21:24:58<shapr>+We've had a busy and productive week, and this weekend promises to be equally productive.
21:25:06<jfoutz>-hmm. so am i wasting my time trying to get the xml example working? should i just wait and check out the devel version on monday?
21:25:20<shapr>+Lemme see if I can whip up something...
21:25:59<jfoutz>-meh, don't worry about it. finish the new way of doing things.
21:26:17<jfoutz>-in the long run, that's a better use of your time.
21:27:17<shapr>+Well, the new code we're doing just uses the existing code, it doesn't alter that specifically.
21:27:21<shapr>+At least, not that I can think of...
21:28:10<alexj>-jfoutz: the xml stuff is actually getting pretty stable.
21:28:41<alexj>-the only potential upcoming change is code that automatically generates reasonable xml from hlists.
21:29:01<alexj>-if you are trying to produce a particular specific xml then today's code is pretty good.
21:29:21<shapr>+I have an xml example that seems to only be missing a Binary instance.
21:29:57<shapr>+Er, maybe more..
21:30:02<shapr>+Seems to need FromReqURI and ToMessage instances.
21:31:42<shapr>+Here's the code I'm looking at: http://www.scannedinavian.com/~shae/foo.hs
21:32:18<shapr>+Oh, I should really hpaste it since hpaste is a HAppS app :-)
21:33:06<shapr>+http://hpaste.org/1105
21:33:44<jfoutz>-thanks shapr , i'll try to pick that apart.
21:34:05<alexj>-exampleGetURI shoud be exampleGetURI (x:[]) ().
21:34:25<shapr>+ah!
21:34:26<shapr>+ACTION tries that
21:34:59<alexj>-I think you also need it to be h (Prefix ["status"])
21:35:17<shapr>+oh right
21:36:07<alexj>-what does "get" do?
21:37:49<shapr>+It grabs the state.
21:37:56<shapr>+Should it be gets?
21:38:15<alexj>-dunno. just reading the code. what does the compiler say?
21:38:47<shapr>+It wants "No instance for (FromReqURI String [String]) arising from use of `basicFileServe'" and "No instance for (ToMessage Something) arising from use of `ok'"
21:40:01<alexj>-hs (Prefix [clientPath]) GET $ basicFIleServe
21:40:47<shapr>+ah
21:41:00<shapr>+Applying that to all the cases leaves only the ToMessage problem.
21:41:26<shapr>+At first thought, I would have guessed that a ToElement instance would be enough.
21:41:55<alexj>-me too. let me look at other code to see what it is doing.
21:42:11<shapr>+I'll repaste the changed code.
21:43:16<shapr>+http://hpaste.org/1105#a1
21:44:15<alexj>-you don't need Prefix for the POST example.
21:44:34<shapr>+ah
21:44:54<alexj>-what is the actual error message?
21:45:18<shapr>+ No instance for (ToMessage Something) arising from use of `ok' at /home/shae/clients/alexj/repos/HAppS/examples/foo.hs:36:25-41
21:53:51<alexj>-I think with xml you need to put xml somewhere in your code.
21:54:05<alexj>-I thought we had gotten rid of that need but it appears in the passnet code.
21:54:10<shapr>+weird
22:02:18<shapr>+Well, my brain is highly distracted at the moment... I'll look at this more later.

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