/usr/share/doc/libghc-setenv-doc/html/setenv.txt is in libghc-setenv-doc 0.1.1.3-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | A cross-platform library for setting environment variables
--
-- A cross-platform library for setting environment variables
--
-- Note: Since <tt>base- 4.7.0.0</tt> the functions <tt>setEnv</tt> and
-- <tt>unsetEnv</tt> are provided by <tt>System.Environment</tt>.
-- <tt>System.SetEnv</tt> merily re-exports those functions when built
-- with <tt>base >= 4.7</tt>.
@package setenv
@version 0.1.1.3
module System.SetEnv
-- | <tt>setEnv name value</tt> sets the specified environment variable to
-- <tt>value</tt>.
--
-- On Windows setting an environment variable to the <i>empty string</i>
-- removes that environment variable from the environment. For the sake
-- of compatibility we adopt that behavior. In particular
--
-- <pre>
-- setEnv name ""
-- </pre>
--
-- has the same effect as
--
-- <pre>
-- <a>unsetEnv</a> name
-- </pre>
--
-- If you don't care about Windows support and want to set an environment
-- variable to the empty string use <tt>System.Posix.Env.setEnv</tt> from
-- the <tt>unix</tt> package instead.
--
-- Throws <a>IOException</a> if <tt>name</tt> is the empty string or
-- contains an equals sign.
setEnv :: String -> String -> IO ()
-- | <tt>unSet name</tt> removes the specified environment variable from
-- the environment of the current process.
--
-- Throws <a>IOException</a> if <tt>name</tt> is the empty string or
-- contains an equals sign.
unsetEnv :: String -> IO ()
|