Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

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

  1. setCurrentDir :: MonadIO m => Path b Dir -> m ()

    path-io Path.IO

    Change the working directory to the given path. In a multithreaded program, the current working directory is a global state shared among all threads of the process. Therefore, when performing filesystem operations from multiple threads, it is highly recommended to use absolute rather than relative paths (see: makeAbsolute). The operation may fail with:

    • HardwareFault A physical I/O error has occurred. [EIO]
    • InvalidArgument The operand is not a valid directory name. [ENAMETOOLONG, ELOOP]
    • isDoesNotExistError or NoSuchThing The directory does not exist. [ENOENT, ENOTDIR]
    • isPermissionError or PermissionDenied The process has insufficient privileges to perform the operation. [EACCES]
    • UnsupportedOperation The operating system has no notion of current working directory, or the working directory cannot be dynamically changed.
    • InappropriateType The path refers to an existing non-directory object. [ENOTDIR]

  2. setModificationTime :: MonadIO m => Path b t -> UTCTime -> m ()

    path-io Path.IO

    Change the time at which the file or directory was last modified. The operation may fail with:

    • isPermissionError if the user is not permitted to alter the modification time; or
    • isDoesNotExistError if the file or directory does not exist.
    Some caveats for POSIX systems:
    • Not all systems support utimensat, in which case the function can only emulate the behavior by reading the access time and then setting both the access and modification times together. On systems where utimensat is supported, the modification time is set atomically with nanosecond precision.
    • If compiled against a version of unix prior to 2.7.0.0, the function would not be able to set timestamps with sub-second resolution. In this case, there would also be loss of precision in the access time.
    Note: this is a piece of conditional API, only available if directory-1.2.3.0 or later is used.

  3. setOwnerExecutable :: Bool -> Permissions -> Permissions

    path-io Path.IO

    No documentation available.

  4. setOwnerReadable :: Bool -> Permissions -> Permissions

    path-io Path.IO

    No documentation available.

  5. setOwnerSearchable :: Bool -> Permissions -> Permissions

    path-io Path.IO

    No documentation available.

  6. setOwnerWritable :: Bool -> Permissions -> Permissions

    path-io Path.IO

    No documentation available.

  7. setPermissions :: MonadIO m => Path b t -> Permissions -> m ()

    path-io Path.IO

    The setPermissions operation sets the permissions for the file or directory. The operation may fail with:

    • isPermissionError if the user is not permitted to set the permissions; or
    • isDoesNotExistError if the file or directory does not exist.

  8. setAddrFamily :: Family -> ClientSettings -> ClientSettings

    streaming-commons Data.Streaming.Network

    Set the address family for the given settings. Since 0.1.3

  9. setAfterBind :: HasAfterBind a => (Socket -> IO ()) -> a -> a

    streaming-commons Data.Streaming.Network

    No documentation available.

  10. setHost :: ByteString -> ClientSettings -> ClientSettings

    streaming-commons Data.Streaming.Network

    No documentation available.

Page 207 of many | Previous | Next