14:53:32 <Entroacceptor> can I use a Text.Lazy (which is recommended by stringtemplate) directly for a response, somehow?
14:55:36 <Entroacceptor> and what's the best thing to do forms?
14:55:38 <Entroacceptor> Formlets?
14:56:15 <mightybyte> Depends on your needs.
14:56:56 <mightybyte> Formlets give you good composability and hide all the details of choosing field names.
14:57:44 <mightybyte> However, if you are using javascript to work with your forms and you want to specify the field names, then formlets might not be as attractive.
14:58:22 <mightybyte> Although you could still figure out what field names are generated and use those.
14:59:43 <Entroacceptor> basically I want an "edit this!" feature
15:00:26 <Entroacceptor> so formlets should be ok
15:00:31 <mightybyte> Yeah
15:01:18 <Entroacceptor> if I'd want some fancy web2.5 stuff, what would you recommmend then?
15:02:20 <mightybyte> Formlets also give you a pretty nice direct translation to and from haskell data structures.
15:02:30 <Entroacceptor> yes, that's what I'd like
15:02:40 <mightybyte> Well, that depends on what kind of fancy stuff you're trying to do.
15:02:53 <Entroacceptor> ok, then I'll ask when I encouter that ;)
15:03:11 <mightybyte> It seems to me that most applications will eventually end up in a state where the forms aren't changing much.
15:03:37 <mightybyte> And in that case, the automatically generated field names shouldn't be a problem once you understand how they're generated.
15:04:31 <Entroacceptor> do you know any good doc about formlets? I don't find much
15:04:49 <mightybyte> Yeah, it's not great.
15:05:03 <Entroacceptor> there's an old blog post from 2008 and the wiki
15:05:19 <Entroacceptor> the haddock is too bare for me
15:06:27 <mightybyte> Yeah, I haven't used formlets in quite awhile since I took over maintainership of the package, so it could definitely use some improvement.
15:06:29 <Entroacceptor> and there's still no magic "make a form out of this datatype" stuff
15:06:31 <Entroacceptor> right?
15:06:35 <mightybyte> No
15:07:25 <mightybyte> You might check out this post I wrote awhile back.
15:07:27 <mightybyte> http://softwaresimply.blogspot.com/2009/08/dynamic-list-formlets-in-haskell.html
15:07:50 <Entroacceptor> thanks
15:08:45 <mightybyte> That post is specifically about the implementation of massInput, but it should help
15:10:38 <mightybyte> If you want dynamically sized lists of form fields, then I'm not aware of any other solution which comes close to the ease with which that can be accomplished with formlets.
16:11:45 <stepcut> Entroacceptor: you might consider digestive-functors as well. Similar to formlets, but actively developed and with some nice improvements
16:13:00 <mightybyte> Yes, I was trying to remember the name.
16:13:19 <mightybyte> Although that library doesn't have the dynamic list support that formlets has.
16:13:48 <Entroacceptor> digestive-functors sounds a bit icky
16:14:23 <Entroacceptor> does it have documentation?
16:16:22 <stepcut> Entroacceptor: probably not ?
16:16:34 <stepcut> well.. hmmm
16:17:12 <stepcut> there is this, https://github.com/jaspervdj/digestive-functors/blob/master/digestive-functors.lhs
16:18:10 <stepcut> and some haddock documentation
16:18:31 <mightybyte> formlets doesn't really support inline error messages
16:18:31 <Entroacceptor> oh, yes
16:18:33 <Entroacceptor> thanks
16:18:38 <mightybyte> digestive-functors does
16:23:24 <Entroacceptor> ok, thanks
16:23:40 <Entroacceptor> (again *g*, I'm a bit tired and multitasking)
16:23:48 <Entroacceptor> but I'll read up on that on the train
16:24:15 <Entroacceptor> so, have a nice (show partOfDay)