Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A sandboxed version of Haskell

Is there a sandboxed version of Haskell that prevents dangerous code from being run? I stumbled across mueval and Safe Haskell...mueval only takes expressions, and Safe Haskell hasn't been implemented yet. Is there some other alternative for sandboxing Haskell scripts? It seems like preventing IO should be enough. Is there an easy way to prevent all IO in a Haskell script?

like image 210
Vlad the Impala Avatar asked May 24 '12 07:05

Vlad the Impala


1 Answers

Safe Haskell is the latest incarnation of a trusted core for Haskell, and is available in the Haskell Platform.

It exists to facilitate the execution of untrusted code.

like image 68
Don Stewart Avatar answered Sep 18 '22 05:09

Don Stewart