haskell-qrencode-1.0.3: Haskell bindings for libqrencode.

Data.QRCode

Description

Haskell bindings for libqrencode. http://fukuchi.org/works/qrencode/index.en.html

Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 2D symbology that can be scanned by handy terminals such as a mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and is highly robust.

Synopsis

Documentation

encodeByteStringSource

Arguments

:: ByteString

String to encode

-> Maybe Int

Version (auto if Nothing)

-> QREncodeLevel

Encode Level

-> QREncodeMode

Encode Mode

-> Bool

Case-sensative

-> IO QRcode 

create a QR code from a ByteString

encodeStringSource

Arguments

:: String

String to encode

-> Maybe Int

Version (auto if Nothing)

-> QREncodeLevel

Encode Level

-> QREncodeMode

Encode Mode

-> Bool

Case-sensative

-> IO QRcode 

create a QR code from a String

toMatrix :: QRcode -> [[Word8]]Source

Convert a QRcode to a matrix of ones and zeros (1 = On, 0 = Off)

data QREncodeMode Source

Constructors

QR_MODE_NUM

Numeric mode

QR_MODE_AN

Alphabet-numeric mode

QR_MODE_EIGHT

8-bit data mode

QR_MODE_KANJI

Kanji (shift-jis) mode