License | AGPL-3 |
---|---|
Maintainer | Kinoru |
Stability | Temporary |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
This module is intended to be a drop-in replacement of Data.ByteString.Char8.
The only two functions whose type signatures have changed are readFile
and writeFile
. They take RawFilePath
instead of FilePath
. This is
to avoid the unnecessary String
- ByteString
conversion overhead.
The ongoing Abstract FilePath Proposal should address this issue, so this is a temporary resolution until the proposal is merged.
- readFile :: RawFilePath -> IO ByteString
- writeFile :: RawFilePath -> ByteString -> IO ()
- module Data.ByteString.Char8
Documentation
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
.
module Data.ByteString.Char8