Safe Haskell | None |
---|---|
Language | Haskell2010 |
the proverbial junk drawer
Synopsis
- io :: IO a -> State# s -> (# State# s, a #)
- mutableByteArrayContents# :: MutableByteArray# s -> Addr#
- pinnedByteArrayFromString0 :: String -> MutableByteArray RealWorld
- pinnedByteArrayFromStringN0 :: Int -> String -> MutableByteArray RealWorld
- c_memchr :: Addr# -> CInt -> CSize -> IO (Ptr ())
- c_strlen :: Addr# -> IO CSize
- c_strncmp :: Addr# -> Addr# -> CSize -> IO CInt
- pure_strlen :: Addr# -> CSize
- cint :: CInt -> Int#
- csize :: CSize -> Int#
- mkBS :: Addr# -> ForeignPtrContents -> Int# -> ByteString
- newtype ForeignString = ForeignString (ForeignPtr Word8)
- packForeignString :: ByteString -> ForeignString
- withForeignString :: ForeignString -> (CString -> IO r) -> IO r
Documentation
mutableByteArrayContents# :: MutableByteArray# s -> Addr# Source #
Missing primitive
pinnedByteArrayFromString0 :: String -> MutableByteArray RealWorld Source #
pure_strlen :: Addr# -> CSize Source #
mkBS :: Addr# -> ForeignPtrContents -> Int# -> ByteString Source #
newtype ForeignString Source #
An _immutable_ foreign cstring. This is mostly useful for things like calling strstr through ffi where the needle needs to be null terminated.
Instances
Eq ForeignString Source # | |
Defined in Text.Parsnip.Internal.Private (==) :: ForeignString -> ForeignString -> Bool # (/=) :: ForeignString -> ForeignString -> Bool # | |
Ord ForeignString Source # | |
Defined in Text.Parsnip.Internal.Private compare :: ForeignString -> ForeignString -> Ordering # (<) :: ForeignString -> ForeignString -> Bool # (<=) :: ForeignString -> ForeignString -> Bool # (>) :: ForeignString -> ForeignString -> Bool # (>=) :: ForeignString -> ForeignString -> Bool # max :: ForeignString -> ForeignString -> ForeignString # min :: ForeignString -> ForeignString -> ForeignString # | |
Show ForeignString Source # | |
Defined in Text.Parsnip.Internal.Private showsPrec :: Int -> ForeignString -> ShowS # show :: ForeignString -> String # showList :: [ForeignString] -> ShowS # | |
IsString ForeignString Source # | |
Defined in Text.Parsnip.Internal.Private fromString :: String -> ForeignString # |
withForeignString :: ForeignString -> (CString -> IO r) -> IO r Source #