summaryrefslogtreecommitdiff
path: root/libraries/base/System/Environment.hs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/base/System/Environment.hs')
-rw-r--r--libraries/base/System/Environment.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/base/System/Environment.hs b/libraries/base/System/Environment.hs
index 9beefc4be3..066329c4e7 100644
--- a/libraries/base/System/Environment.hs
+++ b/libraries/base/System/Environment.hs
@@ -212,7 +212,7 @@ foreign import WINDOWS_CCONV unsafe "windows.h GetLastError"
--
-- For POSIX users, this is equivalent to 'System.Posix.Env.getEnv'.
--
--- /Since: 4.6.0.0/
+-- @since 4.6.0.0
lookupEnv :: String -> IO (Maybe String)
#ifdef mingw32_HOST_OS
lookupEnv name = withCWString name $ \s -> try_size s 256
@@ -267,7 +267,7 @@ ioe_missingEnvVar name = ioException (IOError Nothing NoSuchThing "getEnv"
-- Throws `Control.Exception.IOException` if @name@ is the empty string or
-- contains an equals sign.
--
--- /Since: 4.7.0.0/
+-- @since 4.7.0.0
setEnv :: String -> String -> IO ()
setEnv key_ value_
| null key = throwIO (mkIOError InvalidArgument "setEnv" Nothing Nothing)
@@ -311,7 +311,7 @@ foreign import ccall unsafe "putenv" c_putenv :: CString -> IO CInt
-- Throws `Control.Exception.IOException` if @name@ is the empty string or
-- contains an equals sign.
--
--- /Since: 4.7.0.0/
+-- @since 4.7.0.0
unsetEnv :: String -> IO ()
#ifdef mingw32_HOST_OS
unsetEnv key = withCWString key $ \k -> do