packages feed

safe-plugins-0.1: safe-plugins.cabal

Name:                safe-plugins
Version:             0.1

Synopsis:            A small wrapper over hs-plugins to allow loading safe plugins

-- A longer description of the package.
Description:         This library allows you to load plugins, just as hs-plugins do.
                     But under some circumstances, you do not want to allow
                     plugins to do everything they want. What about plugin
                     which executes `rm -rf /*' ? In Haskell, you can limit
                     plugin's abilities just by not allowing it to import `not
                     safe' modules (System.IO.Unsafe, etc). With this library,
                     you specify a list of modules that plugin should be forced
                     to import (i.e., some plugin API module), and a list of
                     module that you want to allow plugin to import (some
                     `surely safe' modules). Plugin cannot import any other
                     modules. Moreover, you can specify some language
                     extensions, for example, NoImplicitPrelude.

-- The license under which the package is released.
License:             BSD3

-- The file containing the license text.
License-file:        LICENSE

-- The package author(s).
Author:              IlyaPortnov

-- An email address to which users can send suggestions, bug reports,
-- and patches.
Maintainer:          portnov84@rambler.ru

-- A copyright notice.
-- Copyright:           

Category:            System

Build-type:          Simple

-- Extra files to be distributed with the package, such as examples or
-- a README.
-- Extra-source-files:  

-- Constraint on the version of Cabal needed to build this package.
Cabal-version:       >=1.6


Library
  -- Modules exported by the library.
  Exposed-modules:     System.Plugins.Safe
  
  -- Packages needed in order to build this package.
  Build-depends:       base >= 3 && <= 5, directory, filepath, Unixutils,
                       plugins, haskell-src-exts
  
  -- Modules not exported by this package.
  -- Other-modules:       
  
  -- Extra tools (e.g. alex, hsc2hs, ...) needed to build the source.
  -- Build-tools: