hgrib-0.3.1.0: Unofficial bindings for GRIB API

Copyright(c) Mattias Jakobsson 2015
LicenseGPL-3
Maintainermjakob422@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Grib.Raw.CFile

Description

Open and close C streams in Haskell.

Synopsis

Documentation

type CFilePtr = Ptr CFile Source

A pointer to a C stream (FILE).

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.