Experimental IRC log happs-2007-06-20

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.

05:09:22<LoganCapaldo>Halp!
05:09:34<LoganCapaldo>Could not deduce (ToMessage (XML el))
05:17:36<LoganCapaldo>if anyone's awake in here and feels like helping, I'm getting errors while building HAppS: http://hpaste.org/339
16:49:49<LoganCapaldo>I'm trying to build hpaste (I know this isn't the hpaste channel) and I'm getting errors about html not being in scope in HPasteAdmin.hs. it imports HAppS, is there anything else I need to do to have the html function visible?
16:51:00<Saizan>LoganCapaldo: which version of HAppS?
16:51:07<LoganCapaldo>0.8.8
16:51:32<Saizan>hackage tarball?
16:51:50<LoganCapaldo>darcs get with --tag=
16:52:06<Saizan>however the most probably working hpaste is at
16:52:10<Saizan>http://www.scannedinavian.com/~eric/hpaste-devel
16:52:45<LoganCapaldo>arg
16:53:05<LoganCapaldo>Ok thanks I'll try that out
16:53:55<LoganCapaldo>So much for all that time trying to add a preview button. I probbaly shoulda made sure I could build it vanilla style before trying to add stuff :)
16:55:13<LoganCapaldo>Saizan: progress!
16:55:22<LoganCapaldo>now its only missing fileServe
16:55:26<Saizan>you'll have to rollback the last patch, probably
16:55:41<Saizan>or use a newer HAppS
16:56:03<LoganCapaldo>well I actually couldn;'t get a newer happs to build yesterday
16:56:31<LoganCapaldo>somethign about not being able to deduce ToMessage (XML el)
16:56:55<Saizan>yeah, i've seen the scrollback
16:58:26<Saizan>however to fix the fileServe thing i confirm that you just have to rollback :)
16:59:30<LoganCapaldo>alright how do I do that? darcs rollback?
16:59:56<LoganCapaldo>err am I rolling back hpaste or happs?
17:00:10<LoganCapaldo>sorry, a little confused :)
17:00:33<Saizan>ok, you get from http://www.scannedinavian.com/~eric/hpaste-devel and rollback it of one patch
17:00:40<Saizan>with darcs rollback
17:00:53<Saizan>- ,hs (Prefix ["static"]) GET $ basicFileServe "static/"
17:00:53<Saizan>+ ,h (Prefix ["static"]) GET $ (\path rq -> respond $ fileServe "static/" path rq)
17:00:59<Saizan>or just do this manually :)
17:05:29<LoganCapaldo>Saizan: thanks. its built
17:05:31<cdsmith>Anyone have hints on http://hpaste.org/342?
17:05:51<LoganCapaldo>Methinks I need to become more familar with the darcs way of doing things
17:06:41<Saizan>cdsmith: same error as LoganCapaldo.. you are lucky, i get a totally different one!
17:07:26<cdsmith>Oh! So it's not specific to HEAD then? I feel a little better.
17:09:29<LoganCapaldo>I'm missing all the pretty
17:09:39<LoganCapaldo>and the domain is hardcoded
17:09:52<LoganCapaldo>is that a limitation of hpaste or HAppS?
17:09:59<LoganCapaldo>but it works
17:10:05<LoganCapaldo>hooray
17:10:24<Saizan>hpaste
17:11:10<LoganCapaldo>now lets see if i can sneak in my preview button
17:11:37<Saizan>the "pretty" is in the repo too (images/ js/ hpaste.css) you have to move it under static/
17:12:20<cdsmith>So there's some commented out code in HApps/Protocols/MessageWrap.hs that fixes the missing instance declarations; now the last error about the implicit parameter to get it to at least build.
17:13:47<LoganCapaldo>Saizan: yeah figured that out
17:39:31<LoganCapaldo>Is it just me, or do the apis to haskell libs change frequently?
17:40:23<sorear>*I* make a point of bumping major versions iff the api breaks.
17:40:36<sorear>(and vty is on version 3.0 ...)
17:46:31<Saizan>ACTION thinks he has an highly corrupted HAppS repo..
17:46:46<shapr>Saizan: What's up?
17:50:49<Saizan>some conflicts in MACID.Saver led me to confusion, i've downloaded the file from happs.org now, however
17:51:00<shapr>ok
18:24:20<shapr>LoganCapaldo: I think W.hs may be deprecated, lemme see if I can build HAppS without it...
21:14:47<cdsmith>shapr, if you're still there I am very interested in whether it's possible to build HAppS without W.hs as well, since I had to change a lot there to get it to build.
21:19:46<shapr>cdsmith: Seems to work
21:22:34<cdsmith>What would I change to do that. Just delete the file?
21:23:16<fbuilesv>And modify the .cabal file and some other stuff like SimpleHTTP.hs
21:23:35<cdsmith>Okay, I'll give it a shot.
21:28:24<shapr>cdsmith: I pushed a patch that commented out that line in the cabal file.
21:29:40<cdsmith>AAAAAAAH! I getting sick of this. I wish something would just work! (Not a HAppS problem this time, though.)
21:30:30<cdsmith>Any clues about ghc-6.7.20070619: dist/build/HAppS/Protocols/MinHaXML.o: unknown symbol `HaXmlzm1zi13zi2_TextziXMLziHaXmlziTypes_AttValue_con_info' ???
21:31:53<fbuilesv>cdsmith: Not sure what it means, but I think it might be a prob. with the HaXml version you have installed?
21:32:28<cdsmith>Yeah, there are zillions of problems with the HaXml I have installed. I'm realizing that this particular thing happens every time HaXml is loaded from TH.
21:34:49<sorear>cdsmith: you almost certainly forgot to use --make
21:35:06<sorear>linker errors are a dead givaway
21:35:23<cdsmith>sorear: forgot it when? When running the Cabal build for HAppS, or when building HaXml?
21:37:27<fbuilesv>sorear: I think the error is popping when he's running the build command, not with an outside program.
21:38:16<shapr>cdsmith: I haven't tried HAppS with ghc-6.7
21:38:22<cdsmith>Yes, that is an error from 'runhaskell Setup build' in the HAppS directory. I doubt it's got anything to do with HAppS though. It seems to happen every time Template Haskell loads HaXml.
21:38:28<sorear>duh. that error only comes from botched manual builds, and failure to pass -fforce-recomp or clean after upgrading a lib
21:38:34<sorear>cdsmith: clean happs
21:39:18<cdsmith>sorear: I'm trying now.
21:40:00<cdsmith>shapr: I got the tagged 0.8.8 to build with GHC 6.7 and it appears to work with the tutorial so far.
21:40:22<cdsmith>shapr: (except I can't use TH, so I have to derive my own StartState, and I had to tweak the state example to add more type information)
21:40:51<shapr>exciting!
21:41:30<cdsmith>shapr: I'm trying to build HAppS head now. That's where I get that problem (which sorear's clean suggestion didn't fix).
21:41:51<fbuilesv>cdsmith: What version of HaXml are you using?
21:41:57<shapr>He's using 13.2
21:42:04<cdsmith>fbuilesv: 1.13.2
21:42:21<shapr>HaXmlzm1zi13zi2_ == HaXml.13.2
21:42:34<fbuilesv>:O
21:42:35<shapr>er, 1.13.2
21:42:43<shapr> "zi" is GHC rewrite magic for "."
21:43:27<shapr>cdsmith: So it's trying to link HAppS against HaXml and failing...
21:43:37<shapr>Can you link anything against HaXml with your current installation?
21:43:49<shapr>If not, try to rebuild/reinstall HaXml.
21:43:57<fbuilesv>Thats curious, I'm building just fine with that version
21:44:06<shapr>fbuilesv: Are you using ghc 6.7 ?
21:44:09<cdsmith>shapr: Yeah, as long as it's done "normally". The only failures I've seen are in GHCi and when using Template Haskell
21:44:29<fbuilesv>shapr: No, there might be the issue.
21:44:53<shapr>I think I heard that loading (dynloading?) with ghc 6.7 is different, and that would probably be the cause.
21:45:28<cdsmith>shapr: Any ideas, or just stick with 0.8.8 until HaXml is fixed for 6.7?
21:56:00<LoganCapaldo>This may be offtopic cause I'm not sure what lib this si actually defined in, but I have a string which I'm +++ on to some html. How do I get it not to escape the string? (the string contains html already)
22:00:40<LoganCapaldo>nvm
22:00:42<LoganCapaldo>found it
22:00:44<LoganCapaldo>primHtml
22:01:01<cdsmith>shapr: I can now promise the error I'm getting is not HAppS-related. I also get it building just this: import Text.XML.HaXml.Types ; $( return ((const []) emptyST) )
22:02:03<LoganCapaldo>sweet!
22:02:26<LoganCapaldo>I totally added a preview to hpaste
22:04:13<cdsmith>LoganCapaldo: cool!
23:14:27<cdsmith>Tue May 29 13:03:07 MDT 2007 shae@ScannedInAvian.com
23:14:27<cdsmith> * remove basicFileServe from SimpleHTTP2, use fileServe path instead
23:14:30<cdsmith>What does this mean?
23:25:08<fbuilesv>basicFileServe is the function used to serve content, you can see it in the haskellwiki tutorial used as (basicFileServe staticPath). I can't seem to find the definition of fileServ in the documentation.
23:31:38<cdsmith>fbuilesv: right, but that changelog entry indicates (and my observations confirm) that basicFileServe is missing in the darcs head for HAppS.
23:32:38<Saizan>yup
23:33:08<cdsmith>Saizan: So any clues what to do? I can use fileServe, but I don't know what to pass to it; I just get type errors
23:33:13<fbuilesv>cdsmith: that's right, but I can't find any replacement either
23:33:28<fbuilesv>cdsmith: Where's fileServe?
23:33:53<Saizan>Prelude HAppS> :i fileServe
23:33:53<Saizan>fileServe :: [Char] -> [[Char]] -> Request -> IO Result -- Defined in HAppS.Protocols.HTTP.FileServe
23:34:27<cdsmith>fbuilesv: If you're relying on the haddock stuff on the web site, apparently the "current" isn't quite current.
23:34:32<fbuilesv>yes, I was :D
23:34:34<fbuilesv>just ofund fileServe
23:35:29<cdsmith>Okay, so the tutorial in darcs talks about FileServe, but the whole top level of the application is different there!
23:35:47<cdsmith>Uses main = asMain (httpH ".") instead of stdHTTP [ list of stuff ]
23:36:06<Saizan>19:00 Saizan : - ,hs (Prefix ["static"]) GET $ basicFileServe "static/"
23:36:10<Saizan>19:00 Saizan : + ,h (Prefix ["static"]) GET $ (\path rq -> respond $ fileServe "static/" path rq)
23:36:22<Saizan>an example ^^
23:36:29<cdsmith>Thanks.
23:36:56<fbuilesv>Saizan: Is it a bad idea to leave basicFileServe in there for backwards compatibilty?
23:37:14<Saizan>fbuilesv: shapr removed it
23:37:48<fbuilesv>Then he can probably answer us when he comes back :D
23:37:55<cdsmith>Saizan: okay, that worked. Thanks much
23:38:34<cdsmith>I'm now wondering what the best way to use HAppS is, though; tutorial on HaskellWiki uses stdHTTP; the one in darcs uses asMain (httpH "."). I don't understand how they relate and what the difference is.
23:39:00<Saizan>which one uses asMain?
23:39:12<Saizan>i mean, which file
23:39:50<cdsmith>http://happs.org/HAppS/doc/tutorial3.mkd
23:46:21<Saizan>mmh that's probably the new api on which alexj is working
23:46:41<Saizan>so, as you wish :)
23:47:06<cdsmith>Okay. Just a general question, then: what's the best way to learn HAppS. I've spent all day on it now (most of it trying to get things to compile) and I'm still lost.
23:48:37<Saizan>uhm, i've learned through the hpaste code, the tutorial and the source :)
23:49:14<cdsmith>Okay, well maybe it will be at least a little smoother now that I've got GHC and HaXml working somewhat reliably.
23:49:18<Saizan>mostly SimpleHTTP2 and MessageWrap
23:52:16<Saizan>well being able to compile what you write is a huge bonus
23:54:19<cdsmith>Saizan: Yes, it is. I was tempted to back up and use GHC 6.6 from my distro, but I'm learning more this way, I guess.
23:55:24<Saizan>do you have a particular reason to use ghc HEAD?

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