The latest version of mueval is 0.9.4-1.

mueval

Version 0.3.1 revision 0 uploaded by GwernBranwen.

Package meta

Synopsis
Safely evaluate Haskell expressions
Description

Mueval is a Haskell interpreter. It uses the GHC API to evaluate arbitrary Haskell expressions. Importantly, mueval takes many precautions to defang and avoid "evil" code. It uses resource limits, whitelisted modules, special Show instances for IO, threads, changes of directory, and so on to sandbox the Haskell code. (It is much like Lambdabot's famous evaluation functionality.)

Currently there is a major hole in Mueval: it is possible use a function without importing it, which allows the module whitelisting to be bypassed, and hence, unsafePerformIO and its various type-breaking friends can be used to do arbitrary things. Mueval uses a blacklist to avoid the most naive and obvious dangerous function imports, but this is a very weak mechanism and cannot be relied upon.

Until this hole is fixed, Mueval should *not* be used on potentially hostile input.

Mueval is currently POSIX-only.

Author
Gwern
Bug reports
n/a
Category
Development, Language
Copyright
n/a
Homepage
http://code.haskell.org/mubot/
Maintainer
Gwern <gwern0@gmail.com>
Package URL
n/a
Stability
n/a

Components