Commit 33e95c60 authored by dterei's avatar dterei
Browse files

Add Safe Haskell flags to known extensions

parent 8c3bdf2a
......@@ -436,6 +436,24 @@ data KnownExtension =
-- | Enable non-decreasing indentation for 'do' blocks.
| NondecreasingIndentation
-- | [GHC § 7.20.3] Allow imports to be qualified with a safe
-- keyword that requires the imported module be trusted as according
-- to the Safe Haskell definition of trust.
--
-- > import safe Network.Socket
| SafeImports
-- | [GHC § 7.20] Compile a module in the Safe, Safe Haskell
-- mode -- a restricted form of the Haskell language to ensure
-- type safety.
| Safe
-- | [GHC § 7.20] Compile a module in the Trustworthy, Safe
-- Haskell mode -- no restrictions apply but the module is marked
-- as trusted as long as the package the module resides in is
-- trusted.
| Trustworthy
deriving (Show, Read, Eq, Enum, Bounded)
{-# DEPRECATED knownExtensions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment