Download Haskell plugins on the fly

I need to write a Haskell application that loads another Haskell plugin on the fly. A plugin is arbitrary source code, after downloading it it works for a long time, so it would be useful to somehow compile it before using it. I also think about using LLVM for this. I assume that this has definitely resolved the problem. How to do it in a reliable way?

+7
source share
2 answers

Check out the plugins package: http://hackage.haskell.org/package/plugins . This is what I used to dynamically load Haskell code in the past. There's also http://hackage.haskell.org/package/plugins-auto , which is a wrapper around plugins , so it’s also worth a look.

edit: If you want to delve into a document describing the plug-in package www.cse.unsw.edu.au/~chak/papers/hs-plugins.ps.gz

+6
source

Take a look at XMonad. He does it. http://xmonad.org

+1
source

All Articles