Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setFileSystemEncoding :: TextEncoding -> IO ()ghc-internal GHC.Internal.IO.Encoding No documentation available.
setForeignEncoding :: TextEncoding -> IO ()ghc-internal GHC.Internal.IO.Encoding No documentation available.
setLocaleEncoding :: TextEncoding -> IO ()ghc-internal GHC.Internal.IO.Encoding Set locale encoding for your program. The locale affects how Chars are encoded and decoded when serialized to bytes: e. g., when you read or write files (readFile', writeFile) or use standard input/output (getLine, putStrLn). For instance, if your program prints non-ASCII characters, it is prudent to execute
setLocaleEncoding utf8
This is necessary, but not enough on Windows, where console is a stateful device, which needs to be configured using System.Win32.Console.setConsoleOutputCP and restored back afterwards. These intricacies are covered by code-page package, which offers a crossplatform System.IO.CodePage.withCodePage bracket. Wrong locale encoding typically causes error messages like "invalid argument (cannot decode byte sequence starting from ...)" or "invalid argument (cannot encode character ...)".setState# :: BufferCodec from to state -> state -> IO ()ghc-internal GHC.Internal.IO.Encoding No documentation available.
setState# :: BufferCodec from to state -> state -> IO ()ghc-internal GHC.Internal.IO.Encoding.Types No documentation available.
setNonBlockingMode :: FD -> Bool -> IO FDghc-internal GHC.Internal.IO.FD No documentation available.
setState# :: BufferCodec from to state -> state -> IO ()ghc-internal GHC.Internal.IO.Handle.Types No documentation available.
setAffinity :: ParFlags -> Boolghc-internal GHC.Internal.RTS.Flags No documentation available.
setEnv :: String -> String -> IO ()ghc-internal GHC.Internal.System.Environment setEnv name value sets the specified environment variable to value. Early versions of this function operated under the mistaken belief that setting an environment variable to the empty string on Windows removes that environment variable from the environment. For the sake of compatibility, it adopted that behavior on POSIX. In particular
setEnv name ""
has the same effect asunsetEnv name
If you'd like to be able to set environment variables to blank strings, use setEnv. Throws IOException if name is the empty string or contains an equals sign. Beware that this function must not be executed concurrently with getEnv, lookupEnv, getEnvironment and such. One thread reading environment variables at the same time with another one modifying them can result in a segfault, see Setenv is not Thread Safe for discussion.setEnv :: String -> String -> Bool -> IO ()ghc-internal GHC.Internal.System.Environment.Blank Like setEnv, but allows blank environment values and mimics the function signature of setEnv from the unix package. Beware that this function must not be executed concurrently with getEnv, lookupEnv, getEnvironment and such. One thread reading environment variables at the same time with another one modifying them can result in a segfault, see Setenv is not Thread Safe for discussion.