qrcode-core-0.8.0: QR code library in pure Haskell

Safe HaskellNone
LanguageHaskell2010

Codec.QRCode.Data.ToInput

Synopsis

Documentation

class ToText a where Source #

Conversion into a String and the information if the text is case insensitive (relevant for alphanumeric encoding)

Methods

toString :: a -> [Char] Source #

isCI :: a -> Bool Source #

Instances
ToText Text Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toString :: Text -> [Char] Source #

isCI :: Text -> Bool Source #

ToText Text Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toString :: Text -> [Char] Source #

isCI :: Text -> Bool Source #

ToText [Char] Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toString :: [Char] -> [Char] Source #

isCI :: [Char] -> Bool Source #

ToText a => ToText (CI a) Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toString :: CI a -> [Char] Source #

isCI :: CI a -> Bool Source #

class ToNumeric a where Source #

Conversion into an array of digits (each has to be 0-9)

Methods

toNumeric :: a -> [Int] Source #

Instances
ToNumeric Text Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toNumeric :: Text -> [Int] Source #

ToNumeric Text Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toNumeric :: Text -> [Int] Source #

ToNumeric [Char] Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toNumeric :: [Char] -> [Int] Source #

ToNumeric [Int] Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toNumeric :: [Int] -> [Int] Source #

class ToBinary a where Source #

Conversion into binary data

Methods

toBinary :: a -> [Word8] Source #

Instances
ToBinary ByteString Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

ToBinary ByteString Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

ToBinary [Word8] Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

Methods

toBinary :: [Word8] -> [Word8] Source #

ToBinary (Vector Word8) Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

ToBinary (Vector Word8) Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput

ToBinary (Vector Word8) Source # 
Instance details

Defined in Codec.QRCode.Data.ToInput