[Haskell-cafe] Grabbing list of functions from current module
Jason Dagit
dagit at codersbase.com
Thu May 10 20:39:05 EDT 2007
On 4/9/07, Joel Reymont <joelr1 at gmail.com> wrote:
> Folks,
>
> 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).
I wrote some code to do this once. I can send you the source if you
like. I wrote about my approach for doing this on my blog some time
back. I hope this is helpful:
http://blog.codersbase.com/2006/09/01/simple-unit-testing-in-haskell/
HTH,
Jason
More information about the Haskell-Cafe
mailing list