--- Log opened Sat Oct 31 00:00:32 2009
03:09 < performance> hi dons
03:10 < performance> are you comfortable with template haskell? and the magic macid foo that happens with happstack?
05:57 < Lione> Hi
09:16 < McManiaC> hey
09:17 < McManiaC> where would i put a "setUserID" from System.Posix.User so my happstack server runs as user XY after binding port 80?
09:19 < McManiaC> currently i start it via "httpTid <- forkIO $ simpleHTTP (httpConf appConf) (appHandler appConf)"
09:28 < stepcut> can you put it on the line after that?
09:28 < McManiaC> well i'd rather wait until port 80 is bound...
09:30 < McManiaC> i guess you'd have to patch Happstack.Server.Listen
09:30 < McManiaC> HTTP.Listen
09:30 < McManiaC> ^^
09:51 < McManiaC> Listening on port 80
09:51 < McManiaC> Changed user to: nils [1000]
09:51 < McManiaC> ^_^
09:52 < McManiaC> how do i submit patches for happstack?
09:53 < McManiaC> darcs failed:  Not a repository: http://patch-tag.com/publicrepos/happstack (Failed to download URL http://patch-tag.com/publicrepos/happstack/_darcs/inventory: HTTP response code said error)
11:26 < HugoDaniel> hi
11:26 < HugoDaniel> is happstack still being actively developed ?
11:26 < HugoDaniel> i haven't seen much talk on the lists
11:56 < jmcarthur> afaik it is
11:59 < HugoDaniel> :)
11:59 < HugoDaniel> allright, nice
14:17 < stepcut> McManiaC: patch-tag change the urls, http://patch-tag.com/r/mae/happstack
14:17 < stepcut> darcs get http://patch-tag.com/r/mae/happstack/pullrepo happstack
14:24 < McManiaC> stepcut: thx
14:29 < stepcut> oooo. new patches from Lemmih!
14:45 < McManiaC> huh
14:45 < McManiaC>     No instance for (Default ClockTime)
14:45 < McManiaC>       arising from the superclasses of an instance declaration
14:45 < McManiaC> ..
14:46 < McManiaC> did anything change here?
14:46 < McManiaC> i just did a cabal install on some of the darcs modules...
14:49 < stepcut> not sure that clocktime ever had a Default instance...
14:49 < stepcut> it would be in the happstack cabal package, Happstack.{Server|State}.ClockTime
14:50 < stepcut> maybe something now requires Default that did not used to
14:51 < McManiaC> it's been working :S
14:53 < McManiaC> ah
14:53 < McManiaC> did a whole upgrade to version 0.4 and it works again
14:53 < McManiaC> <3
14:54 < McManiaC> nice, my patch is working too...
14:54 < McManiaC> hehe
15:00 < aavogt> ooh, happstack 0.4?
15:00 < aavogt> what's new?
15:01 < fxr> hi, may I get some help?
15:02 < aavogt> fxr: that can only happen if we know your problem ;)
15:05 < fxr> sure, I want to simplify my store, http://hpaste.org/fastcgi/hpaste.fcgi/view?id=11390#a11390 any ideas?
15:07 < fxr> it works, but I sense I'll have to add every String property as a newtype
15:09 < fxr> this is a piece of code from authentication component
15:11 < fxr> basically I create a session for each client and send them to openid, when the client came back I verify it and store it's identity.
15:11 < fxr> I read slackstack code before implementing it, slackstack uses SQL
15:12 < stepcut> alas, you probably do need to add a newtype for every value you want to use as an index
15:12 < stepcut> if you don't want the newtypes in the records themselves, you can supply a calcs function that extracts the indices and adds the newtype wrapper
15:13 < stepcut> I am working on an alternative for IxSet which does not have this problem, but it won't be done for months
15:13 < fxr> hmm
15:14 < fxr> well I tried to use tokyocabinet-haskell first but it's hard to store hierarchical data on a kv store
15:15 < fxr> so you're saying that I only need to declare newtype for indexes
15:19 < fxr> for example can I add another property to SessionData whose type is an instance of Read and Show? Do I need to declare it as a new type?
15:27 < stepcut> You can add more fields to SessionData...
15:28 < stepcut> you can add a bunch of new fields that are Strings, and you should be fine as long as you aren't trying to use them as indices
15:32 < fxr> stepcut: hmm so, how can I use one of the field as indice?
15:33 < fxr> using inderIxSet?
15:34 < fxr> s/inder/infer/
15:56 < mightybyte> fxr: Have you looked at happstack-auth?
16:00 < mightybyte> fxr: You need a newtype for fields that are used as an index (unless you don't mind not being able to distinguish between them).
16:20 < McManiaC> how long will it take to get new google group mails? i posted ~1 hour ago
16:20 < stepcut> fxr: I don't really understand your question... You add an index by adding the type of the index to the list that is the last argument of inferIxSet. The fact that indexes are create based on the type, and name something else, like a name, is a bit annoying, imo.
16:21 < stepcut> McManiaC: I just use the web interface, and they usually show up quick. Though not always.
16:23 < McManiaC> hmm
16:43 < fxr> stepcut: ok thanks I guess I understand
16:43 < fxr> mightybyte: and yeah I looked at your code too, thank you very nice example
16:43 < mightybyte> fxr: Ok, just wanted to make sure you knew about it.
19:01 < fxr> hmm
19:02 < fxr> how do you validate forms? for example I can return mzero from fromData. any alternatives?
19:28 < McManiaC> hmmm my mailing list mail is still not on the list...
20:20 < McManiaC> http://groups.google.com/group/happs/browse_thread/thread/82d68223805c17a4
20:21 < McManiaC> oh its there, after ~ 4 hours
20:21 < McManiaC> ^_^
20:24 < stepcut> McManiaC: yeah, happens sometimes
20:25 < stepcut> that's what you get for free ;)
20:25 < McManiaC> =)
20:25 < McManiaC> as long it doesnt get lost... but i guess google wont get lost anything
20:25 < McManiaC> hehe
20:26 < stepcut> :p
22:46 < McManiaC> http://paste.n-sch.de/1J/hs yay ^_^
22:49 < stepcut> yay!
22:50 < stepcut> the available languages drop down does not show the currently selected language :-l
22:51 < McManiaC> yeah =(
22:51 < McManiaC> i just implemented that one
23:00 < McManiaC> stepcut: http://paste.n-sch.de/1K/hs
23:00 < McManiaC> :D
23:05 < stepcut> yay!
23:06 < stepcut> but now the paste is out of date?
23:06 < stepcut> oh no it's not
23:06 < McManiaC> out of date?
23:06 < McManiaC> its a new one
23:06 < McManiaC> ^^
23:06 < stepcut> I just missed the 'Current' the first time
23:06 < McManiaC> heeh
23:06 < McManiaC> well its a pretty basic pastebin
23:07 < McManiaC> didnt have much time to implement fancy features
23:08 < stepcut> instead of, now <- liftIO getClockTime, you might consider using, getTime, which you can use inside the transaction. It gets the time of the transaction, but that is usually close enough...
23:08 < McManiaC> hmm okay
23:09 < stepcut> oh, nevermind.. you are not using happstack-state?
23:09 < stepcut> oh, you do, but you still store the pastes on disk?
23:09 < McManiaC> i am
23:09 < McManiaC> yup
23:10 < McManiaC> i only keep the information about the pastes in memory
23:16 < McManiaC> anyway, gonny get some sleep :) nn
--- Log closed Sun Nov 01 00:00:33 2009