const-0: Read-only mutable primitives

Copyright(c) 2019 Edward Kmett
LicenseBSD-2-Clause OR Apache-2.0
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellTrustworthy
LanguageHaskell2010

Foreign.Const.C.String

Description

 

Documentation

type ACString s = (s ~ Unapply s CChar, APtr (Unapply s)) Source #

type ACWString s = (s ~ Unapply s CWchar, APtr (Unapply s)) Source #

peekACAString :: forall s. ACString s => s -> IO String Source #

peekACAStringLen :: forall s. ACString s => (s, Int) -> IO String Source #

peekACString :: forall s. ACString s => s -> IO String Source #

peekACStringLen :: forall s. ACString s => (s, Int) -> IO String Source #

peekACWString :: forall s. ACWString s => s -> IO String Source #

peekACWStringLen :: forall s. ACWString s => (s, Int) -> IO String Source #

withConstCAString :: forall a. String -> (ConstCString -> 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 #