From 7e9e48cd7987fd424dda0443bc3532a07845d7b7 Mon Sep 17 00:00:00 2001 From: David Terei Date: Thu, 9 Jun 2011 15:45:02 -0700 Subject: SafeHaskell: Initial work on documentation --- docs/users_guide/flags.xml | 44 +++++++++++ docs/users_guide/glasgow_exts.xml | 20 ++++- docs/users_guide/lang.xml | 1 + docs/users_guide/packages.xml | 93 ++++++++++++++++++++-- docs/users_guide/safe_haskell.xml | 157 ++++++++++++++++++++++++++++++++++++++ docs/users_guide/ug-ent.xml.in | 1 + 6 files changed, 309 insertions(+), 7 deletions(-) create mode 100644 docs/users_guide/safe_haskell.xml (limited to 'docs') diff --git a/docs/users_guide/flags.xml b/docs/users_guide/flags.xml index 3e70be999b..43c713e119 100644 --- a/docs/users_guide/flags.xml +++ b/docs/users_guide/flags.xml @@ -599,6 +599,26 @@ dynamic - + + P + Expose package P and set it to be + trusted + static/:set + - + + + P + Expose package P and set it to be + distrusted + static/:set + - + + + + Distrust all packages by default + static/:set + - + @@ -1033,6 +1053,30 @@ dynamic + + + Enable the Safe Haskell Safe mode. + dynamic + + + + + Enable the Safe Haskell Trustworthy mode. + dynamic + + + + + Enable the Safe Haskell Safe Language. + dynamic + + + + + Enable Safe Imports. + dynamic + + diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index e1795f2b28..09a9062ffc 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -1897,6 +1897,25 @@ import "network" Network.Socket another, rendering any package-qualified imports broken. + + Safe imports + + With the flag, GHC extends + the import declaration syntax to take an optional safe + keyword after the import keyword. This feature + is part of the Safe Haskell GHC extension. For example: + + +import safe qualified Network.Socket as NS + + + would import the module Network.Socket + with compilation only succeeding if Network.Socket can be + safely imported. For a description of when a import is + considered safe see + + + Summary of stolen syntax @@ -9411,7 +9430,6 @@ standard behaviour. - diff --git a/docs/users_guide/ug-ent.xml.in b/docs/users_guide/ug-ent.xml.in index 040c25267b..2d19d97688 100644 --- a/docs/users_guide/ug-ent.xml.in +++ b/docs/users_guide/ug-ent.xml.in @@ -13,6 +13,7 @@ + -- cgit v1.2.1