Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setAddrRange# :: Addr# -> Int# -> Int# -> State# RealWorld -> State# RealWorld

    base GHC.Exts

    setAddrRange# dest len c sets all of the bytes in [dest, dest+len) to the value c. Analogous to the standard C function memset, but with a different argument order. Warning: this can fail with an unchecked exception.

  2. setByteArray# :: MutableByteArray# d -> Int# -> Int# -> Int# -> State# d -> State# d

    base GHC.Exts

    setByteArray# ba off len c sets the byte range [off, off+len) of the MutableByteArray# to the byte c. Warning: this can fail with an unchecked exception.

  3. setThreadAllocationCounter# :: Int64# -> State# RealWorld -> State# RealWorld

    base GHC.Exts

    Sets the allocation counter for the current thread to the given value.

  4. setEcho :: IODevice a => a -> Bool -> IO ()

    base GHC.IO.Device

    for terminal devices, changes whether characters are echoed on the device.

  5. setRaw :: IODevice a => a -> Bool -> IO ()

    base GHC.IO.Device

    some devices (e.g. terminals) support a "raw" mode where characters entered are immediately made available to the program. If available, this operation enables raw mode.

  6. setSize :: IODevice a => a -> Integer -> IO ()

    base GHC.IO.Device

    change the size of the data.

  7. setFileSystemEncoding :: TextEncoding -> IO ()

    base GHC.IO.Encoding

    No documentation available.

  8. setForeignEncoding :: TextEncoding -> IO ()

    base GHC.IO.Encoding

    No documentation available.

  9. setLocaleEncoding :: TextEncoding -> IO ()

    base GHC.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 ...)".

  10. setState# :: BufferCodec from to state -> state -> IO ()

    base GHC.IO.Encoding

    No documentation available.

Page 144 of many | Previous | Next