[Haskell-cafe] Function call by string

Stefan O'Rear stefanor at cox.net
Sun Apr 8 14:35:32 EDT 2007

On Sun, Apr 08, 2007 at 03:26:25PM +0200, Philipp Volgger wrote:
> Well, the Haskell files are not the problem, they don't have to be built 
> automatically. The point is that I want to call functions in a Haskell 
> function if I get their names as strings. Isn't there any possibilty to 
> do that? Eventually the interpreter reads also the console in to execute 
> the input. Maybe it will be the best to look there (interpreter code of 
> GHCi)
> Thank you :)

You probably want to look at the eval functions in hs-plugins:

Yi also has a GHC-as-a-library based system you might want to look at,
but it's not in a library and probably less polished overall. 


More information about the Haskell-Cafe mailing list