Copyright | (c) Mattias Jakobsson 2015 |
---|---|
License | GPL-3 |
Maintainer | mjakob422@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Open and close C streams in Haskell.
Documentation
withBinaryCFile :: FilePath -> IOMode -> (CFilePtr -> IO a) -> IO a Source
Like withBinaryFile
, but use a CFilePtr
instead of a file
Handle
.
openBinaryCFile :: FilePath -> IOMode -> IO CFilePtr Source
Like openBinaryFile
, but return a CFilePtr
instead of a
file Handle
.
closeCFile :: CFilePtr -> IO () Source
Close an open CFile
.