summaryrefslogtreecommitdiff
path: root/docs/users_guide/safe_haskell.rst
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-01-14 12:18:09 +0100
committerBen Gamari <ben@smart-cactus.org>2016-01-14 12:19:25 +0100
commitb355b8fc5287bb10da6ead223f91f7de647bb908 (patch)
treefe606788e3089494bb14a0bfb3e2ea160ad1ac7b /docs/users_guide/safe_haskell.rst
parent4dbc31b8240d98bd7eb4fd0874c7da91797c4e2e (diff)
downloadhaskell-b355b8fc5287bb10da6ead223f91f7de647bb908.tar.gz
users-guide: Add since annotations for language extensions
Based off of https://ghc.haskell.org/trac/ghc/wiki/LanguagePragmaHistory.
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