--- Log opened Sun Jan 03 00:00:09 2010
--- Log opened Sun Jan 03 00:00:47 2010
--- Log opened Sun Jan 03 09:08:43 2010
--- Log opened Sun Jan 03 09:08:46 2010
--- Log opened Sun Jan 03 09:10:32 2010
--- Log closed Sun Jan 03 11:59:56 2010
--- Log opened Sun Jan 03 11:59:56 2010
--- Log closed Sun Jan 03 11:59:56 2010
--- Log opened Sun Jan 03 12:22:16 2010
--- Log closed Sun Jan 03 12:28:13 2010
--- Log opened Sun Jan 03 12:28:13 2010
--- Log closed Sun Jan 03 12:28:13 2010
--- Log opened Sun Jan 03 12:28:16 2010
14:12 < stepcut> McManiaC: put it inside <% %> perhaps?
14:13 < McManiaC> solved it on another way...
14:13 < McManiaC> cant remember which one lol
14:49 < aep> happstack from cabal won't compile. is there an alternative package?
15:20 < stepcut> aep: what error?
15:22 < aep> previously i got a compiler errror. now i get "happy version >=1.17 is installed but it could not be found"
15:22 < stepcut> is ~/.cabal/bin in your $PATH?
15:22 < aep> yes
15:23 < aep> happy is available though oO
15:23 < aep> manually installing worked just fine
15:23 < stepcut> hmm, this sounds like something funky with your system..
15:23 < stepcut> glad manual install is working :)
15:24 < stepcut> almost all the install errors we see right now are due to things outside of happstack :-/
15:24 < stepcut> like bugs in the GHC 6.12 optimizer -/
15:24 < aep> i find cabal odd
15:24 < stepcut> yes
15:25 < aep> well it worked...
15:25 < stepcut> :)
15:25 < aep> thanks :D
17:18 < aep> hm from the turotial:
17:18 < aep> Prelude> :i simpleHTTP
17:18 < aep> i get:
17:18 < aep> Top level: Not in scope: `simpleHTTP'
17:18 < aep> although the tutorial app runs just fine
17:20 < stepcut> :m + Happstack.Server
17:21 < aep> oh
17:22 < aep> yeah, thanks. me beeing nobish i guess
17:24 < stepcut> that's allow
17:24 < stepcut> that's allowed
--- Log closed Sun Jan 03 17:56:02 2010
--- Log opened Sun Jan 03 17:56:02 2010
--- Log closed Sun Jan 03 17:56:02 2010
--- Log opened Sun Jan 03 17:56:06 2010
20:34 < McManiaC> is there a way to get utf8 work with hsp?
20:40 < McManiaC> http://hackage.haskell.org/packages/archive/utf8-light/0.4/doc/html/Codec-Binary-UTF8-Light.html uses ByteString
20:44 < McManiaC> oh I just need to store it as utf8... great
20:48 < McManiaC> http://npaste.de/snowman/
20:48 < McManiaC> :D
20:49 < stepcut> McManiaC: what are you trying to do?
20:49 < McManiaC> supporting utf8 :)
20:50 < stepcut> HSP supports utf-8..
20:50 < stepcut> actually, I believe HSP does not care... it stores things internally as String, and when you convert the XML type to a ByteString, the conversion happens there...
20:51 < stepcut> the default ToMessage for XML should do it properly..
20:51 < stepcut> utf-8 + unicode support in Happstack should just work automatically..
20:51 < stepcut> support other encodings is the tricky part..
20:52 < stepcut> also, you have to be careful when you generate forms, html, etc, that you actually specify the charset / encoding where your are supposed to
20:52 < stepcut> like in the <meta> tag in the header, and I think there is an attribute in the <form> tag as well..
20:53 < stepcut> if you are needing to call utf-8 conversion functions yourself, you are probably doing it wrong :)
20:54 < stepcut> so, all you should need to do is put something like, <p>?</p>
20:54 < stepcut> in your source code
20:54 < stepcut> and it just works :)
20:57 < McManiaC> yeh, it just dont care
20:57 < McManiaC> you have to decode the bytestring tho... but the important part is the storage
20:57 < McManiaC> the HTML then renders it as utf8
21:03 < stepcut> when do you have to decode the bytestring?
21:03 < McManiaC> writeUTF8File <- i think thats the important part
21:04 < McManiaC> since I store the pastes on the harddrive
21:04 < stepcut> are you using 6.10 or 6.12?
21:04 < McManiaC> and maybe readUTF8File
21:04 < McManiaC> 6.10
21:04 < McManiaC> did they fix that in 6.12?
21:04 < stepcut> yeah, 6.12 fixes the problem with IO functions can't handle unicode
21:05 < McManiaC> okay
--- Log closed Mon Jan 04 00:00:06 2010