checked-io-0.1.0.0: Checked IO exceptions
Safe HaskellSafe-Inferred
LanguageHaskell2010

CheckedIO.Foreign

Contents

Synopsis

Documentation

newtype CString s Source #

A Ptr CChar with a state s to ensure that it's not used after being destroyed.

Constructors

CString 

Fields

withCString :: MonadRunAsIOE e m => String -> (forall s. CString s -> m a) -> m (Either EncodingError a) Source #

Encodings