summaryrefslogtreecommitdiff
path: root/docs/users_guide/safe_haskell.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/users_guide/safe_haskell.rst')
-rw-r--r--docs/users_guide/safe_haskell.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/users_guide/safe_haskell.rst b/docs/users_guide/safe_haskell.rst
index 9fab56320e..c92062b0b4 100644
--- a/docs/users_guide/safe_haskell.rst
+++ b/docs/users_guide/safe_haskell.rst
@@ -639,6 +639,8 @@ In summary, Safe Haskell consists of the following three language flags:
.. ghc-flag:: -XSafe
+ :since: 7.2.1
+
Restricts the module to the safe language. All of the module's
direct imports must be trusted, but the module itself need not
reside in a trusted package, because the compiler vouches for its
@@ -652,6 +654,8 @@ In summary, Safe Haskell consists of the following three language flags:
.. ghc-flag:: -XTrustworthy
+ :since: 7.2.1
+
This establishes that the module is trusted, but the guarantee is
provided by the module's author. A client of this module then
specifies that they trust the module author by specifying they trust
@@ -671,6 +675,8 @@ In summary, Safe Haskell consists of the following three language flags:
.. ghc-flag:: -XUnsafe
+ :since: 7.4.1
+
Mark a module as unsafe so that it can't be imported by code
compiled with :ghc-flag:`-XSafe`. Also enable the Safe Import extension so that a
module can require