[Haskell-cafe] Using multiplate to get free variables from a syntax tree

Matt Brown matt at softmechanics.net
Thu Feb 23 22:18:22 CET 2012

Hi all,

I'm reading the haskellwiki article on multiplate. Is it possible to
modify the getVariablesPlate example to return the free variables?
One idea I had is to store an environment in a reader monad, and use
local to update the environment at a let expression.  Couldn't figure
it out, though.  Any ideas?



More information about the Haskell-Cafe mailing list