kewar: CLI and library to generate QR codes.

[ data, library, mit, program, qr ] [ Propose Tags ]

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

[Skip to Readme]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],, (info)
Change log
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 <>
Category Data, QR
Uploaded by shikaan at 2022-02-12T18:05:35Z
Distributions NixOS:
Executables kewar
Downloads 158 total (8 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for kewar-

[back to package description]


(pronounced qr)

Generate QR code from given input string

MIT license


cabal install exe:kewar

# or

cabal install lib:kewar



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


$ 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:


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


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