6 Mar 2013 10:18
Need help interpreting renamer trace output
"Philip K.F." Hölzenspies <p.k.f.holzenspies <at> utwente.nl>
2013-03-06 09:18:49 GMT
2013-03-06 09:18:49 GMT
Dear GHC-ers,
I'm looking into the inerts of the renamer and I'm trying to get a feel
for where things are bound. I thought it would be useful to have a look
at how the renamer works on something known, so I compiled the following
program (with HEAD):
class Foo x where
type FooTy x y
foo :: x t -> FooTy x t
instance Foo [] where
type FooTy [] a = a
foo (x:xs) = x
main = print "Done"
In the output of -ddump-rn-trace, I see this around the declaration of
the class Foo:
bhtv [x, y]
[]
([(v1A, x), (v1C, y)], [(afy, x), (afz, y)])
bhtv [t]
[]
([(v1A, x), (vjW, t)], [(afy, x), (afA, t)])
rnTycl [(class Foo x where
type family FooTy x y
foo :: x t -> FooTy x t,
[(rfv, FooTy)])]
[REC
(Continue reading)
RSS Feed