| Copyright | (c) The University of Glasgow, 2008-2011 | 
|---|---|
| License | see libraries/base/LICENSE | 
| Maintainer | [email protected] | 
| Stability | internal | 
| Portability | non-portable | 
| Safe Haskell | Trustworthy | 
| Language | Haskell2010 | 
Foreign marshalling support for CStrings with configurable encodings
peekCString :: TextEncoding -> CString -> IO String Source
Marshal a NUL terminated C string into a Haskell string.
peekCStringLen :: TextEncoding -> CStringLen -> IO String Source
Marshal a C string with explicit length into a Haskell string.
newCString :: TextEncoding -> String -> IO CString Source
Marshal a Haskell string into a NUL terminated C string.
free or finalizerFree.newCStringLen :: TextEncoding -> String -> IO CStringLen Source
Marshal a Haskell string into a C string (ie, character array) with explicit length information.
free or finalizerFree.withCString :: TextEncoding -> String -> (CString -> IO a) -> IO a Source
Marshal a Haskell string into a NUL terminated C string using temporary storage.
withCStringLen :: TextEncoding -> String -> (CStringLen -> IO a) -> IO a Source
Marshal a Haskell string into a C string (ie, character array) in temporary storage, with explicit length information.
charIsRepresentable :: TextEncoding -> Char -> IO Bool Source
Determines whether a character can be accurately encoded in a CString.
Pretty much anyone who uses this function is in a state of sin because whether or not a character is encodable will, in general, depend on the context in which it occurs.
    © The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
    https://downloads.haskell.org/~ghc/7.10.3/docs/html/libraries/base-4.8.2.0/GHC-Foreign.html