Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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.
Synopsis
-
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
- (<>) :: Semigroup a => a -> a -> a
class and conversions
class ConvertibleStrings a b where Source #
convertString :: a -> b Source #
Instances
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.)