unbreak-0.3.1: Secure and resilient remote file storage utility

LicenseAGPL-3
MaintainerKinoru
StabilityTemporary
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Data.ByteString.OverheadFree

Description

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.

Synopsis

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.