string-conversions-0.4.0.1: Simplifies dealing with different types for strings
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.String.Conversions

Description

A type class for converting strings. Supported types are:

Assumes UTF-8 encoding for both types of ByteStrings.

Synopsis

class and conversions

class ConvertibleStrings a b where Source #

Methods

convertString :: a -> b Source #

Instances

Instances details
ConvertibleStrings LazyByteString LazyByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyByteString LazyText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyByteString StrictByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyByteString StrictText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyByteString String Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyText LazyByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyText LazyText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyText StrictByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyText StrictText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings LazyText String Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictByteString LazyByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictByteString LazyText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictByteString StrictByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictByteString StrictText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictByteString String Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictText LazyByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictText LazyText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictText StrictByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictText StrictText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings StrictText String Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings String LazyByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings String LazyText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings String StrictByteString Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings String StrictText Source # 
Instance details

Defined in Data.String.Conversions

ConvertibleStrings String String Source # 
Instance details

Defined in Data.String.Conversions

cs :: ConvertibleStrings a b => a -> b Source #

type synonyms

type ST = Text Source #

type LT = Text Source #

Generic string concatenation (with ghc >= 7.4 this is a re-export from Data.Monoid to avoid clashes.)

(<>) :: Semigroup a => a -> a -> a infixr 6 #

An associative operation.

Examples

Expand
>>> [1,2,3] <> [4,5,6]
[1,2,3,4,5,6]
>>> Just [1, 2, 3] <> Just [4, 5, 6]
Just [1,2,3,4,5,6]
>>> putStr "Hello, " <> putStrLn "World!"
Hello, World!