diagrams-qrcode: Draw QR codes to SVG, PNG, PDF or PS files.

[ bsd3, graphics, library ] [ Propose Tags ]

This library is able to draw diagrams of QR codes using the diagrams library. In order to create the QR code itself, you may use either the haskell-qrencode library or qrcode library, both are supported. In order to draw and save the diagram to a file, we suggest using either the diagrams-svg library (pure Haskell, fast, SVG output only) or the diagrams-cairo library (requires Cairo, supports many different output targets, including SVG, PNG, PDF, PS and directly onto a GUI).

For an example of how this library may be used, please see the examples on the source code.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0, 1.0.1, 1.1, 1.1.1, 1.1.2, 1.2, 1.3
Dependencies array, base (>=4.5 && <4.9), colour, diagrams-core (>=1.3 && <1.4), diagrams-lib (>=1.3 && <1.4) [details]
License BSD-3-Clause
Copyright (c) 2012-2014 Prowdsponsor <opensource@prowdsponsor.com>
Author Felipe Lessa <felipe.lessa@prowdsponsor.com>
Maintainer Felipe Lessa <felipe.lessa@prowdsponsor.com>
Category Graphics
Home page https://github.com/prowdsponsor/diagrams-qrcode
Source repo head: git clone git://github.com/prowdsponsor/diagrams-qrcode.git
Uploaded by FelipeLessa at 2015-10-02T15:11:49Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 5818 total (25 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-10-03 [all 1 reports]

Readme for diagrams-qrcode-1.3

[back to package description]

diagrams-qrcode

This library is able to draw diagrams of QR codes using the diagrams library. In order to create the QR code itself, you may use either the haskell-qrencode library or qrcode library, both are supported. In order to draw and save the diagram to a file, we suggest using either the diagrams-svg library (pure Haskell, fast, SVG output only) or the diagrams-cairo library (requires Cairo, supports many different output targets, including SVG, PNG, PDF, PS and directly onto a GUI).

For example:

$ cabal install diagrams-qrcode haskell-qrencode diagrams-svg diagrams
$ cd examples/
$ echo 'https://github.com/meteficha/diagrams-qrcode/' | \
  runhaskell using-haskell-qrencode.hs > qrcode.svg
$ xdg-open qrcode.svg

qrcode.png