[Haskell-beginners] Dynamic Loading of Haskell Code!
Oliver Charles
ollie at ocharles.org.uk
Fri Feb 21 16:54:46 UTC 2014
Gilberto Melfe <gilbertomelfe at gmail.com> writes:
> Hi there All!
>
> I would like to ask:
> Is it possible for a Haskell program to load code while it's running,
> in order for it to facilitate the implementation of Plugins?
> (like it's possible in Perl or Python)
One possible solution is the Haskell `hint` library:
http://hackage.haskell.org/package/hint
This uses the GHC API to allow you to compile strings into Haskell
functions at runtime. This is a lot like `eval` in other languages.
- ocharles
More information about the Beginners
mailing list