21:27:00 guys I am trying to setup a helloworld example of happs 21:27:11 could somebody point me to a working tutorial 21:27:33 http://www.haskell.org/haskellwiki/HAppS_tutorial2 21:27:34 I tried this 21:28:19 but I keep on getting could not find module HAppS.Server 21:28:33 I know I has successfully installed 'happstack' from cabal 21:28:36 any thoughts 21:29:42 because Happstack puts the modules in the Happstack. namespace 21:31:47 grafa123824: did you check the other ones listed here: http://happstack.com/tutorials.html 21:54:06 aavogt: that's where I got the link I pasted 21:54:20 it's the second one listed there 21:54:27 well the tutorial.happstack.com one is pretty good 21:55:20 I am guessing I might be missing the HAppS package 21:55:28 but I did do cabal install happstack 21:55:58 should that include the package that the tutorial imports? import HAppS.Server 21:56:49 no, the tutorial is old... development on happs continues on happstack 23:01:24 I have narrowed down a call to Prelude.undefined in my happstack using +RTS -xc : http://hpaste.org/fastcgi/hpaste.fcgi/view?id=21130#a21130 23:02:13 this is after commenting out the use of catchError in happstack-server-0.4.1 23:03:29 nice! 23:04:02 stepcut: do you see how to fix this though? 23:05:45 don't call undefined? 23:05:51 I don't 23:06:20 this is the puzzling thing 23:08:10 I wouldn't take -xc output as 100% accurate 23:12:20 aavogt: what is the problem? 23:13:43 stepcut: my app says something calls Prelude.undefined instead of doing the right thing 23:14:01 aavogt: when? 23:14:29 when I submit a request... 23:14:47 are you using libraries besides happstack? 23:14:53 yes 23:15:01 could one of those be calling undefined? 23:15:12 is the -xc output to be trusted? 23:15:23 doubt it 23:16:07 it probably just tells you that it was in the withTimeOutMaybe function when a lazy value was finally forced and discovered to be 'undefined' 23:19:39 stepcut: how do you suggest I find this occurence of undefined then? 23:20:51 basically I have an IntMap in an mvar which I look to retrieve some cached results 23:48:30 aavogt: eliminate code until you find the part that causes the error? 23:50:36 well the undefined isn't litterally in my code 23:51:16 but maybe I accidentally managed to use some function defined using undefined somewhere else like hlist 23:52:01 right 23:52:28 happstack does use undefined some places, but not in ways that should actually be problematic 23:52:31 though recompiling that after replacing all undefineds with an appropriate error message doesn't seem to do the trick 23:52:38 mostly things like, typeOf (undefined :: a) 23:53:11 yeah, those shouldn't fail 23:53:25 if you print the retrieved cached value, does that cause an undefined? 23:53:33 all my typeable instances are defined 23:53:51 actually running the IO that retrieves the cached value triggers it 23:55:24 does that IO use happstack? 23:56:03 gtg, meeting time 23:57:11 nope 23:59:34 anyway, I don't know any secret tricks. You just got to eliminate possibilities until you find the problem :)