00:00:47 ah, ghci debugger is pretty helpful 00:01:43 ah.. I have never used it :) 00:02:35 well it turns out the values I stick into that IntMap are somehow undefined.... 00:12:53 aha 00:13:38 I suspect it has something to do with some weirdness in the typeable instance 00:14:06 the data is fine before I apply toDyn 00:14:17 afterwards, it isn't.... 00:17:58 puzzling how the compiler accepts my toDyn (Nothing :: Maybe a) 00:18:20 or at least that is a type that's inside some larger structure 00:18:51 I guess using all these extensions may finally have caught up with me 17:07:52 hmm, so it turns out that hlist's typeable instances are strict 17:08:21 so typeOf (error "is strict" :: HCons Int HNil) == error "is strict" 17:11:11 aavogt: ah 17:17:07 stepcut: but in my case it's more subtle... the typeable instance is also undefined for any lists of hlists 17:17:25 ah 17:18:46 so now how to put my lists of hlists into Dynamic.... 17:19:14 oh [Dynamic] will work 17:20:04 but that's playing quite loose with the types there 17:25:14 and it probably involves more overhead too 17:41:55 sounds like aavogt is winning.. 17:44:17 winning what? 17:44:23 "the war on bugs"? 17:47:48 aavogt: yes, on that undefined bug 18:25:25 yay, it seems to be fixed finally 18:27:56 nice 18:28:55 though it would just be nicer to fix the manually written Typeable instance http://hpaste.org/fastcgi/hpaste.fcgi/view?id=21428#a21428 18:29:43 as in making that pattern match lazy 18:30:10 ACTION wonders why the instance isn't just derived 18:59:55 aavogt: with hindsight, what led you to it ? eliminating code until it worked ? 19:00:24 "stepping" with ghci debugger ? 19:00:51 stepping with ghci debugger and inspecting variables 19:01:14 nice. I'll try that again next time I have something hard to find 19:01:16 otherwise I would have needed lots of trace statements to see at which point stuff got to be undefined 19:02:08 for stepping to be easier to understand it's easier when intermediate variables are named 19:15:55 good tip 20:54:22 Has anyone built a paypal webshop with happstack? 20:55:10 it would be nice if you documented your progress :) 20:55:11 not that I know of 20:55:43 st3pcut: Why leet today? 20:56:00 Ok, has anyone built a paypal webshop at all, and has some idea how hard it would be do to with happstack? 20:56:13 shapr: because I am on the desktop not the laptop at the moment 20:56:21 ah 20:56:27 shapr: I have looked into paypal integration in the past 20:56:54 shapr: it's not over complicated.. depends a lot on what the requirements are 20:57:16 shapr: at the most basic level, you just drop some html into your page, and everything else is handled by paypal 20:57:46 Sounds easy enough. 20:58:05 there is additional integration you can do, like callbacks and stuff 20:58:21 I'll just start by building any old happs website... 20:59:14 shapr: if the items in the store don't change frequently, you can use some tool on paypals site to generate the html. They have a lot of documentation available as well if you want to generate it yourself