8 Dec 2012 14:34
Safe Haskell safe-inferred status
Omari Norman <omari <at> smileystation.com>
2012-12-08 13:34:14 GMT
2012-12-08 13:34:14 GMT
Is there a way to determine whether a module has been marked safe by GHC for purposes of Safe Haskell?
The GHC 7.4 docs say that if I compile a module and I don't use the -XSafe or -XTrustworthy flag, GHC will automatically figure out whether the module would have compiled with -XSafe and, if so, marks the module as safe. Where does GHC record this determination? It doesn't seem to show up in ghc-pkg dump (there you can see trusted packages, but I am looking for safe-inferred status for modules.) ghc --show-iface seems to come up dry too.
I know Haddock shows this information but sometimes it says "Safe Haskell: None". I have no idea what this means so I was wondering what GHC itself says.
Thanks. --Omari
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed