[Haskell-cafe] reasons why Template Haskell does not propose something similar to Python exec() or eval()
Marc Weber
marco-oweber at gmx.de
Sat Aug 24 13:12:25 CEST 2013
Excerpts from TP's message of Sat Aug 24 11:36:04 +0200 2013:
> Haskell does not propose something similar to Python (or bash) exec() or
> eval(), i.e. does not offer the possibility to take a (quoted) string in
You actually have eval/exec like features. You can run "ghc" modules in a
haskell application to compile a module, then run that code.
Eg see this example to get started
http://mawercer.de/tmp/haskell-dyn-loading-example.zip
Origin of most ideas was this site:
http://codeutopia.net/blog/2011/08/20/adventures-in-haskell-dynamic-loading-and-compiling-of-modules/
Marc Weber
More information about the Haskell-Cafe
mailing list