Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setCookiePath :: SetCookie -> Maybe ByteStringcookie Web.Cookie The URL path for which the cookie should be sent. Default value: Nothing (The browser defaults to the path of the request that sets the cookie).
setCookieSameSite :: SetCookie -> Maybe SameSiteOptioncookie Web.Cookie The "same site" policy of the cookie, i.e. whether it should be sent with cross-site requests. Default value: Nothing
setCookieSecure :: SetCookie -> Boolcookie Web.Cookie Instructs the browser to only send the cookie over HTTPS. Default value: False
setCookieValue :: SetCookie -> ByteStringcookie Web.Cookie The value of the cookie. Default value: "value"
setAccessTime :: MonadIO m => Path b t -> UTCTime -> m ()path-io Path.IO Change the time at which the file or directory was last accessed. The operation may fail with:
- isPermissionError if the user is not permitted to alter the access time; or
- isDoesNotExistError if the file or directory does not exist.
- Not all systems support utimensat, in which case the function can only emulate the behavior by reading the modification time and then setting both the access and modification times together. On systems where utimensat is supported, the access 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 modification time.
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]
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.
- 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.
setOwnerExecutable :: Bool -> Permissions -> Permissionspath-io Path.IO No documentation available.
setOwnerReadable :: Bool -> Permissions -> Permissionspath-io Path.IO No documentation available.
setOwnerSearchable :: Bool -> Permissions -> Permissionspath-io Path.IO No documentation available.