Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
A type class for converting strings. Supported types are:
- strict
ByteString
- lazy
ByteString
- strict
Text
- lazy
Text
- strict
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 where Source
convertString :: a -> b Source
cs :: ConvertibleStrings a b => a -> b Source
type synonyms
type StrictByteString = ByteString Source
type SBS = ByteString Source
type LazyByteString = ByteString Source
type LBS = ByteString Source
type StrictText = Text Source
Generic string concatenation (with ghc >= 7.4 this is a re-export from Data.Monoid to avoid clashes.)