[Haskell-cafe] Grabbing list of functions from current module
john at repetae.net
Mon Apr 9 09:02:45 EDT 2007
On Mon, Apr 09, 2007 at 01:39:55PM +0100, Joel Reymont wrote:
> Does anyone have code that can grab a list of functions named with a
> certain prefix from the current (or given) module? I want to find
> functions named, say, ast_* and produce a list of tuples like
> ("input1", ast_input1).
sed -ne 's/^ast_\([a-z0-9_A-Z]\+\).*$/("\1",ast_\1)/p' File.hs
note the two occurances of 'ast_'.
John Meacham - ⑆repetae.net⑆john⑈
More information about the Haskell-Cafe