stringable-0.1.3: A Stringable type class, in the spirit of Foldable and Traversable
Safe HaskellNone
LanguageHaskell98

Data.Stringable

Documentation

class Stringable a where Source #

Minimal complete definition

toString, fromString, length

Instances

Instances details
Stringable ByteString Source # 
Instance details

Defined in Data.Stringable

Stringable ByteString Source # 
Instance details

Defined in Data.Stringable

Stringable FilePath Source # 
Instance details

Defined in Data.Stringable

Stringable Text Source # 
Instance details

Defined in Data.Stringable

Stringable Text Source # 
Instance details

Defined in Data.Stringable

Stringable String Source # 
Instance details

Defined in Data.Stringable

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

Instances details
CStringable ByteString Source # 
Instance details

Defined in Data.Stringable

CStringable ByteString Source # 
Instance details

Defined in Data.Stringable

CStringable Text Source # 
Instance details

Defined in Data.Stringable

Methods

withCStringable :: Text -> (CString -> IO b) -> IO b Source #

withCStringLenable :: Text -> (CString -> Int -> IO b) -> IO b Source #

CStringable Text Source # 
Instance details

Defined in Data.Stringable

Methods

withCStringable :: Text -> (CString -> IO b) -> IO b Source #

withCStringLenable :: Text -> (CString -> Int -> IO b) -> IO b Source #

CStringable String Source # 
Instance details

Defined in Data.Stringable

Methods

withCStringable :: String -> (CString -> IO b) -> IO b Source #

withCStringLenable :: String -> (CString -> Int -> IO b) -> IO b Source #