HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleqrcode-core-0.9.11Haskell2010

Codec.QRCode.Intermediate

Contents
  1. Generators
  2. Intermediate
  3. Encoder
  4. Re-Exports
Synopsis

Generators

The results of the different generators can be appended using <>.

valuetext :: ToText a => TextEncoding -> a -> Result QRSegment

Generate a segment representing the specified text data encoded as ISO-8859-1 or UTF-8 (with or without ECI) in byte mode.

Please refer to TextEncoding on what the difference is.

In case you want to encode as ISO-8859-1 and already have a [Word8] or similar you can use binary as it creates the same result.

valuekanji :: ToText a => a -> Result QRSegment

Generate a segment representing the specified text data encoded as QR code Kanji.

Since this encoding does neither contain ASCII nor the half width katakana characters it may be impossible to encode all text in this encoding.

But it is possible to encode some of it and combine it with others like ISO-8859-1.

Generate a segment representing the specified text string encoded in alphanumeric mode.

The alphanumeric encoding contains this characters: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".

When the input is case insensitive the chars are converted to uppercase since this alphabet contains only uppercase characters. This can be archived by applying mk to the input.

valueeci :: Int -> Result QRSegment

Generate a segment representing an Extended Channel Interpretation (ECI) designator with the specified assignment value.

Intermediate

Encoder

Re-Exports