--- Log opened Wed Apr 29 00:00:54 2009
14:55 < akamaus> hi anyone
14:56 < akamaus> what is the idiomatic way of doing redirects to another page on the same site? tempRedirect wants SURI. Where to get host part from?
15:49 < iago> akamaus, ?
15:50 < akamaus> i'm here
15:50 < iago> well, I don't know exactly what do you want because I'm waiting to have to time to see happs ;P
15:50 < iago> but host is implicit
15:51 < akamaus> as i found later, tempRedirect and friend happily takes strings so "/path" and so
15:51 < iago> if not included
15:51 < iago> uhm, well, I'm not sure but SURI = String URI ?
15:51 < akamaus> iago, yes ) I just thought I need to supply it something of SURI type
15:52 < akamaus> no, SURI is some kind of container for URI
15:52 < iago> well, I go to take a look at doc
15:52 < akamaus> which is abstract type for urls, it stores them in parsed form
15:52 < akamaus> i looked in the sources
15:54 < iago> uhm
15:55 < iago> well, I dunno
15:55 < iago> if it's the correct way but, until another could help you better
15:55 < iago> Read SURI
15:55 < akamaus> URI is used in many network libraries, but in happs authors decided to wrap it.. dont know why
15:56 < akamaus> iago, i solved the problem )
15:56 < akamaus> just supply it with string like "/path"
15:56 < iago> only an string?
15:57 < akamaus> it wants something of class ToSURI, which String belongs to
15:57 < akamaus> so it transparently parses them
15:57 < iago> well, I was looking in the happs doc
15:57 < iago> perhaps string was added in happstack
15:58 < iago> good
15:58 < akamaus> hmm.. docs dont include instances
15:58 < akamaus> did :i ToSURI in ghci
15:58 < akamaus> *I did
16:48 < mightybyte> akamus: I'v been using this: seeOther "/index.html" $ toResponse ""
16:48 < mightybyte> akamaus, rather
17:22 < mightybyte> akamaus: Did you see my comment about seeOther?
17:23 < akamaus> no, thanks for signaling
17:23 < mightybyte> seeOther "/index.html" $ toResponse ""     (if you needed it again)
17:24 < akamaus> mightybyte, at first I tried "127.0.0.1:8000/" and got "Location: " in http header. With port it seems not to be parsed correctly
17:25 < mightybyte> I've never tried specifying a port.
17:25 < akamaus> it silently fails
21:57 < abuiles> Hi, guys, Has someone built Happstack.Helpers documentation ? I'm trying but I'm getting an error ?
--- Log closed Thu Apr 30 00:00:56 2009