Copyright | (c) XT 2016 |
---|---|
License | Apache 2.0 |
Maintainer | e@xtendo.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
A drop-in replacement of Data.ByteString
from the bytestring
package
that provides file I/O functions with RawFilePath
instead of FilePath
.
- module Data.ByteString
- type RawFilePath = ByteString
- readFile :: RawFilePath -> IO ByteString
- writeFile :: RawFilePath -> ByteString -> IO ()
- appendFile :: RawFilePath -> ByteString -> IO ()
- withFile :: RawFilePath -> IOMode -> (Handle -> IO r) -> IO r
Documentation
module Data.ByteString
type RawFilePath = ByteString #
A literal POSIX file path
readFile :: RawFilePath -> IO ByteString Source #
Read an entire file at the RawFilePath
strictly into a ByteString
.
writeFile :: RawFilePath -> ByteString -> IO () Source #
Write a ByteString
to a file at the RawFilePath
.
appendFile :: RawFilePath -> ByteString -> IO () Source #
Append a ByteString
to a file at the RawFilePath
.