
I'm trying to map lambda names in Yhc Core code back to the containing functions, but there doesn't seem to be any obvious way of doing this. I was wondering if anyone had any ideas. I've spotted a previous mailing list post (http://www.haskell.org/pipermail/yhc/2007-June/000957.html) and a google code bug (http://code.google.com/p/yhc/issues/detail?id=141) but no evidence of anything having been done. Does anyone have any ideas what naming would be nice? Given: module Test where main = (\a -> a) 42 presumably we want something like Test;main!LAMBDAxxx - with whatever seperator seems nice. Using a different symbol has the same reasoning as using the ";" - to make it easy for Yhc Core based tools, see (http://www.haskell.org/pipermail/yhc/2007-August/001044.html). As far as implementing this goes, it seems that liftLambda in Lift.hs is naming the function, but I can't work out where the code it is lifting came from. Any pointers on that would be appreciated. Thanks