kewar: CLI and library to generate QR codes.

[ data, library, mit, program, qr ] [ Propose Tags ]
This version is deprecated.

Generate QR codes from input string. Comes with CLI and as a library.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.1.1 (info)
Change log CHANGELOG.md
Dependencies array (>=0.5 && <0.6), base (>=4.14 && <4.15), containers (>=0.6 && <0.7), kewar, split (>=0.2 && <0.3) [details]
License MIT
Copyright 2022 Manuel Spagnolo
Author Manuel Spagnolo
Maintainer Manuel Spagnolo <spagnolo.manu@gmail.com>
Revised Revision 1 made by shikaan at 2022-02-12T18:14:15Z
Category Data, QR
Uploaded by shikaan at 2022-02-10T22:45:43Z
Distributions
Executables kewar
Downloads 213 total (10 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-02-12 [all 3 reports]

Readme for kewar-0.1.1.0

[back to package description]

kewar

(pronounced qr)

Generate QR code from given input string

MIT license

Installation

cabal install exe:kewar

# or

cabal install lib:kewar

CLI

Example

$ kewar --error-correction=H "Hello World"

Usage

$ kewar [options] [INPUT]

kewar is a tool to generate QR codes from any supported string, utilizing an error correction level to allow data recovery.

For more information on QR codes: https://www.qrcode.com/en/

Options

  -v         --version                   print qr version
  -h         --help                      print this help
  -e[LEVEL]  --error-correction[=LEVEL]  use error correction LEVEL for encoding. Defaults to Q

Library

module Main where

import Kewar (generate, CorrectionLevel(Q))
import MyModule (doStuff)

main = do
  let input = "my string"
  case generate input Q of
    Left e -> print e
    Right grid -> doStuff grid