[Haskell-cafe] Haskell and symbolic references

Bayley, Alistair Alistair.Bayley at invesco.com
Fri May 29 11:51:45 EDT 2009


> From: haskell-cafe-bounces at haskell.org 
> [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of 
> Is it possible with Haskell to call a function whose name is contained
> in a String?
> Something like:
> 
> five = call_func "add" [2, 3]
> 
> If not, perhaps this is acheivable using FFI?


Dynamic loading via plugins will do this. It was broken on Windows for
some time; not sure if it works there now.
  http://hackage.haskell.org/cgi-bin/hackage-scripts/package/plugins

Alistair
*****************************************************************
Confidentiality Note: The information contained in this message,
and any attachments, may contain confidential and/or privileged
material. It is intended solely for the person(s) or entity to
which it is addressed. Any review, retransmission, dissemination,
or taking of any action in reliance upon this information by
persons or entities other than the intended recipient(s) is
prohibited. If you received this in error, please contact the
sender and delete the material from any computer.
*****************************************************************



More information about the Haskell-Cafe mailing list