Safe Haskell trust

Edward Kmett ekmett at gmail.com
Sun Mar 16 17:34:30 UTC 2014


Not directly. You can, however, make a Trustworthy module that re-exports
the (parts of) the Unsafe ones you want to allow yourself to use.

-Edward


On Sun, Mar 16, 2014 at 12:57 PM, Fabian Bergmark <fabian.bergmark at gmail.com
> wrote:

> Im using the Hint library in a project where users are able to upload
> and run code. As I don't want them to do any IO, I run the interpreter
> with -XSafe. However, some packages (in my case aeson) are needed and
> I therefore tried marking them as trusted with ghc-pkg trust aeson.
> This seems to have no effect however and the interpreter fails with:
>
> Data.Aeson: Can't be safely imported! The module itself isn't safe
>
> Is there any way to get XSafe-like guarantees with the ability of
> allowing certain packages?
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20140316/abe4edd5/attachment.html>


More information about the Glasgow-haskell-users mailing list