-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | QR Code library in pure Haskell -- -- QR Code encoder (and future decoder) in pure Haskell. @package qrcode @version 0.1.2 -- | An evolving QR Code encoder (and future decoder) in pure Haskell. -- -- Currently supports encoding Numeric and Alphanumeric -- data. -- -- Example -- --
--   encode (fromJust $ version 1) M Alphanumeric "hello world"
--   
module Codec.Binary.QRCode -- | Returns Nothing if the input is invalid for the Mode -- specified. encode :: Version -> ErrorLevel -> Mode -> String -> Maybe Matrix -- | Convert a Matrix to an array of Bounded Light -- modules will have the value maxBound; Dark modules will -- have the value minBound toArray :: Bounded a => Matrix -> Array (Int, Int) a -- | The number of modules per side. width :: Matrix -> Int -- | Valid version number is [1, 40] version :: Int -> Maybe Version -- | Represents a QR Code symbol. data Matrix -- | The smallest unit in a QR Code symbol (i.e. one square). data Module Dark :: Module Light :: Module data Mode -- |
--   0123456789
--   
Numeric :: Mode -- |
--   0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-.:.
--   
-- -- Input alphabets are automatically converted to upper case. Alphanumeric :: Mode data ErrorLevel -- | Error recovery up to 7%. L :: ErrorLevel -- | Error recovery up to 15%. M :: ErrorLevel -- | Error recovery up to 25%. Q :: ErrorLevel -- | Error recovery up to 30%. H :: ErrorLevel data Version