Copyright | (c) 2019 Edward Kmett |
---|---|
License | BSD-2-Clause OR Apache-2.0 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Documentation
type ConstCString = ConstPtr CChar Source #
type ConstCStringLen = (ConstCString, Int) Source #
type ConstCWString = ConstPtr CWchar Source #
type ConstCWStringLen = (ConstCWString, Int) Source #
constCString :: ACString s => s -> ConstCString Source #
constCWString :: ACWString s => s -> ConstCWString Source #
withConstCAString :: forall a. String -> (ConstCString -> IO a) -> IO a Source #
withConstCAStringLen :: forall a. String -> (ConstCStringLen -> IO a) -> IO a Source #
withConstCString :: forall a. String -> (ConstCString -> IO a) -> IO a Source #
withConstCStringLen :: forall a. String -> (ConstCStringLen -> IO a) -> IO a Source #
withConstCWString :: forall a. String -> (ConstCWString -> IO a) -> IO a Source #
withConstCWStringLen :: forall a. String -> (ConstCWStringLen -> IO a) -> IO a Source #