开发者

Haskell XMLRPC server executing dynamically generated functions

开发者 https://www.devze.com 2022-12-18 15:08 出处:网络
I have a Haskell RPCXML (HaXR) server process, run with GHC, 开发者_StackOverflowthat needs to execute any function that it\'s passed. These functions will all be defined at runtime so the compiled se

I have a Haskell RPCXML (HaXR) server process, run with GHC, 开发者_StackOverflowthat needs to execute any function that it's passed. These functions will all be defined at runtime so the compiled server won't know about them.

Is there a way to load a function definition at runtime? A method that avoids disk IO is preferable.

Thanks.


hint seems to be popular these days.

Although to load a function definition I think you will either have to put it into a module, or re-interpret it every time you use it.

0

精彩评论

暂无评论...
验证码 换一张
取 消