packages feed

mueval-0.5: mueval.cabal

name:                mueval
version:             0.5

license:             BSD3
license-file:        LICENSE
author:              Gwern
maintainer:          Gwern <gwern0@gmail.com>

category:            Development, Language
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, in short, intended to be a standalone version of Lambdabot's famous
                     evaluation functionality. For examples and explanations, please see the README file.
                     .
                     Mueval is currently POSIX-only.
homepage:            http://code.haskell.org/mubot/

build-type:          Simple
cabal-version:       >= 1.2
tested-with:         GHC==6.8.2

data-files:          README
extra-source-files:  build.sh, tests.sh

library
        exposed-modules:     Mueval.Concurrent, Mueval.Context, Mueval.Interpreter,
                             Mueval.ParseArgs, Mueval.Resources
        build-depends:       base, directory, mtl, unix, hint>=0.2.4, show>=0.2, utf8-string
        ghc-options:         -Wall -static

executable mueval
           main-is:       main.hs
           build-depends: base
           ghc-options:   -Wall -threaded -static