[Haskell-cafe] some way to reverse engineer lambda expressions out
of the debugger?
tphyahoo at gmail.com
Sat Dec 30 03:53:53 EST 2006
I am a newbie learning haskell. (First forum post.)
I am wondering if there is a trick to get debugging information about
functions out of the environment (which for me, for now, is ghci).
In this example,
*UnixTools> :t map (*) [1,2]
map (*) [1,2] :: (Num a) => [a -> a]
This is very nice, but I would *really* like to see something like
*UnixTools> explodeLambda( map (*) [1,2] )
[(\x -> 1*x),(\x -> 2*x)]
Yes, maybe I'm dreaming, but I would like haskell to reverse engineer /
pretty print lambda expressions for me.
*UnixTools> map ($ 5 ) [(\x -> 1*x),(\x -> 2*x)]
*UnixTools> map ($ 5) ( map (*) [1..2] )
So these expressions really are the same, only it could be argued that the
first expression is in some sense easier to read if you are debugging
I would like to have something like "Data::Dumper" from perl, but of course,
Is something like this possible, or be worked on? Or probably never going to
View this message in context: http://www.nabble.com/some-way-to-reverse-engineer-lambda-expressions-out-of-the-debugger--tf2897954.html#a8096545
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
More information about the Haskell-Cafe