file-io-0.1.2: Basic file IO operations via 'OsPath'
Copyright(c) Julian Ospald 2023-2024
LicenseBSD3
Maintainerhasufell@posteo.de
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

System.File.PlatformPath

Description

This module is only interesting when you are implementing low-level libraries based on OsPath API.

Usually you want System.File.OsPath.

Synopsis

Documentation

withFile :: PlatformPath -> IOMode -> (Handle -> IO r) -> IO r Source #

Like withFile, but takes a PlatformPath instead of an OsPath.

withBinaryFile :: PlatformPath -> IOMode -> (Handle -> IO r) -> IO r Source #

Like withBinaryFile, but takes a PlatformPath instead of an OsPath.

withFile' :: PlatformPath -> IOMode -> (Handle -> IO r) -> IO r Source #

Like withFile', but takes a PlatformPath instead of an OsPath.

withBinaryFile' :: PlatformPath -> IOMode -> (Handle -> IO r) -> IO r Source #

Like withBinaryFile', but takes a PlatformPath instead of an OsPath.

readFile :: PlatformPath -> IO ByteString Source #

Like readFile, but takes a PlatformPath instead of an OsPath.

readFile' :: PlatformPath -> IO ByteString Source #

Like readFile', but takes a PlatformPath instead of an OsPath.

writeFile :: PlatformPath -> ByteString -> IO () Source #

Like writeFile, but takes a PlatformPath instead of an OsPath.

writeFile' :: PlatformPath -> ByteString -> IO () Source #

Like writeFile', but takes a PlatformPath instead of an OsPath.

appendFile :: PlatformPath -> ByteString -> IO () Source #

Like appendFile, but takes a PlatformPath instead of an OsPath.

appendFile' :: PlatformPath -> ByteString -> IO () Source #

Like appendFile', but takes a PlatformPath instead of an OsPath.

openFile :: PlatformPath -> IOMode -> IO Handle Source #

Like openFile, but takes a PlatformPath instead of an OsPath.