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