string-conversions-0.4.0.1: Simplifies dealing with different types for strings

Safe HaskellSafe
LanguageHaskell2010

Data.String.Conversions

Contents

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 #

Minimal complete definition

convertString

Methods

convertString :: a -> b Source #

Instances

ConvertibleStrings String String Source # 
ConvertibleStrings String LazyText Source # 
ConvertibleStrings String StrictText Source # 
ConvertibleStrings String LazyByteString Source # 
ConvertibleStrings String StrictByteString Source # 
ConvertibleStrings LazyText String Source # 
ConvertibleStrings LazyText LazyText Source # 
ConvertibleStrings LazyText StrictText Source # 
ConvertibleStrings LazyText LazyByteString Source # 
ConvertibleStrings LazyText StrictByteString Source # 
ConvertibleStrings StrictText String Source # 
ConvertibleStrings StrictText LazyText Source # 
ConvertibleStrings StrictText StrictText Source # 
ConvertibleStrings StrictText LazyByteString Source # 
ConvertibleStrings StrictText StrictByteString Source # 
ConvertibleStrings LazyByteString String Source # 
ConvertibleStrings LazyByteString LazyText Source # 
ConvertibleStrings LazyByteString StrictText Source # 
ConvertibleStrings LazyByteString LazyByteString Source # 
ConvertibleStrings LazyByteString StrictByteString Source # 
ConvertibleStrings StrictByteString String Source # 
ConvertibleStrings StrictByteString LazyText Source # 
ConvertibleStrings StrictByteString StrictText Source # 
ConvertibleStrings StrictByteString LazyByteString Source # 
ConvertibleStrings StrictByteString StrictByteString Source # 

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.)

(<>) :: Monoid m => m -> m -> m infixr 6 #

An infix synonym for mappend.

Since: 4.5.0.0