[Haskell] Re: Dynamic Loading?

Andre Pang ozone at algorithm.com.au
Sun Mar 20 19:52:33 EST 2005

On 20/03/2005, at 10:35 PM, Ashley Yakeley wrote:

> Let us say you want to have plug-in loadable widgets. You create a
> widget API, which is in fact a data-type W (which you make an instance
> of Typeable). You then write an application that loads widgets, using
> something like this:
>   loadDynamic :: FilePath -> IO Dynamic

In a nutshell, yes, you can do this.  See:


for a very primitive module which more-or-less does that.

However, what you _really_ want is hs-plugins, Don Stewart's ninja-fu 
dynamic loader for Haskell, which can do what you want and far, far 
more.  Runtime Haskell evaluation never felt so good:


% Andre Pang : trust.in.love.to.save  <http://www.algorithm.com.au/>

More information about the Haskell mailing list