--- Log opened Fri Jan 08 00:00:06 2010
--- Day changed Fri Jan 08 2010
00:00 < aavogt> you could write your own Response instance using that webHSP
00:02 < pham> problem is webHSP returns "m Response"
00:03 < pham> I ended having to write: handler = msum [ ... , page_404 >>= notFound ] -- to account for the monad type
01:37 < pham> can you make dynamic attributes with HSP?
01:38 < pham> like how would you make an img function (this doesn't work: img src = -- )
01:38 < pham> (and no, that's not what I'm doing)
01:46 < pham> oh duh, just remove the <% %>
02:27 < pham> ok, here's a real question: I want to combine two "HSP XML" fragments in to one
04:23 < pham> another question (still haven't figured out "HSP XML" concatonation): can you make your own tags with HSP?
04:29 < pham> oh, apparently a list works. Must be something weird with the parsing when I tried that
04:44 < pham> my deal is there's a certain tag where whenever I use it I'm going to want one or more attributes that I don't want to repeat
04:44 < pham> I could write a little function, but then I have to use <% %> every time
06:05 < pham> where's some example code that processes POST data?
06:36 < pham> this is kicking my ass
07:13 < pham> BLARG, the latest version of happstack ditched webHSP
07:13 < pham> I wonder what replaced it
08:19 < SubStack> stringtemplate?
08:32 < pham> I was wrong... Happstack.Server.HSP.HTML is part of the package happstack, not happstack-server like I assumed
08:32 < pham> and happstack-server doesn't depend on happstack, so it simply wasn't installed
08:42 < pham> ahg, I just spent about 4 hours determining that I needed getDataFn instead of getData. This is why I shouldn't try to write code when sleep deprived
10:28 < sm> morning all
10:28 < sm> "ServerMonad is just a ReaderMonad that contains the Request" - would it be easier to understand if called WithRequest, then ?
10:29 < McManiaC> Server error: Prelude.chr: bad argument
10:30 < McManiaC> what is that error message about?
10:30 < McManiaC> someone tried to paste binary stuff on my pastebin, and I get this error message
10:30 < McManiaC> (a jpg file)
10:31 < mightybyte> McManiaC: Check out http://haskell.org/onlinereport/char.html
10:32 < McManiaC> Int too big maybe?
10:32 < McManiaC> is there a way to get a backtrace of that error message?
10:33 < mightybyte> Haskell doesn't lend itself well to traditional stack traces.
10:34 < sm> I seem to think there is a way though.. run in ghci or use some profiling flag ?
10:43 < stepcut> pham: you can create your own tags by simply putting whatever you want between the angle brackets. But you will need to write your own function to actually walk over the resulting xml and transform it the way you want
10:52 < aavogt> there was some paper on adding backtraces to ghc, which is sort of like the ghci debugger, but you don't have to step through evaluation or something
10:53 < aavogt> http://portal.acm.org/ft_gateway.cfm?id=1596654&type=pdf
10:53 < stepcut> McManiaC: do you set the encoding to utf-8 in your