Safe Haskell | None |
---|
A type class for converting strings. Supported types are:
-
String
- strict
ByteString
- lazy
ByteString
- strict
Text
- lazy
Text
Assumes UTF-8 encoding for both types of ByteStrings.
- class ConvertibleStrings a b where
- convertString :: a -> b
- cs :: ConvertibleStrings a b => a -> b
- type StrictByteString = ByteString
- type SBS = ByteString
- type LazyByteString = ByteString
- type LBS = ByteString
- type StrictText = Text
- type ST = Text
- type LazyText = Text
- type LT = Text
- (<>) :: Monoid m => m -> m -> m
class and conversions
class ConvertibleStrings a b whereSource
convertString :: a -> bSource
cs :: ConvertibleStrings a b => a -> bSource
type synonyms
type StrictByteString = ByteStringSource
type SBS = ByteStringSource
type LazyByteString = ByteStringSource
type LBS = ByteStringSource
type StrictText = TextSource
Generic string concatenation (with ghc >= 7.4 this is a re-export from Data.Monoid to avoid clashes.)