Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.Stringable
Documentation
class Stringable a where Source #
Minimal complete definition
Methods
toString :: a -> String Source #
fromString :: String -> a Source #
fromText :: Text -> a Source #
toLazyText :: a -> Text Source #
fromLazyText :: Text -> a Source #
toByteString :: a -> ByteString Source #
fromByteString :: ByteString -> a Source #
toLazyByteString :: a -> ByteString Source #
fromLazyByteString :: ByteString -> a Source #
toFilePath :: a -> FilePath Source #
fromFilePath :: FilePath -> a Source #
Instances
class Stringable a => CStringable a where Source #
Minimal complete definition
Nothing
Methods
withCStringable :: a -> (CString -> IO b) -> IO b Source #
withCStringLenable :: a -> (CString -> Int -> IO b) -> IO b Source #
Instances
CStringable ByteString Source # | |
Defined in Data.Stringable Methods withCStringable :: ByteString -> (CString -> IO b) -> IO b Source # withCStringLenable :: ByteString -> (CString -> Int -> IO b) -> IO b Source # | |
CStringable ByteString Source # | |
Defined in Data.Stringable Methods withCStringable :: ByteString -> (CString -> IO b) -> IO b Source # withCStringLenable :: ByteString -> (CString -> Int -> IO b) -> IO b Source # | |
CStringable Text Source # | |
CStringable Text Source # | |
CStringable String Source # | |