Dynamically choosing the main function

Harendra Kumar harendra.kumar at gmail.com
Sun Nov 12 16:18:02 UTC 2017


Hi,

GHC allows choosing a main function at link time using the "-main-is"
option. I was wondering if there is a possibility to choose the main
function at runtime. Or even better, if something equivalent to "ghc -e"
is somehow possible in a linked binary executable. If not, are there any
plans to achieve something like that in future? Are there any theoretical,
practical obstacles to that?

Thanks,
Harendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20171112/db515ad4/attachment.html>


More information about the ghc-devs mailing list