The diagrams-qrcode package

[Tags: bsd3, library]

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]

Properties

Versions1.0, 1.0.1, 1.1, 1.1.1, 1.1.2, 1.2
Change logNone available
Dependenciesarray, base (>=4.5 && <4.8), colour, diagrams-core (==1.2.*), diagrams-lib (==1.2.*) [details]
LicenseBSD3
Copyright(c) 2012-2014 Prowdsponsor <opensource@prowdsponsor.com>
AuthorFelipe Lessa <felipe.lessa@prowdsponsor.com>
MaintainerFelipe Lessa <felipe.lessa@prowdsponsor.com>
CategoryGraphics
Home pagehttps://github.com/prowdsponsor/diagrams-qrcode
Source repositoryhead: git clone git://github.com/prowdsponsor/diagrams-qrcode.git
UploadedThu Jul 31 00:00:32 UTC 2014 by FelipeLessa
Downloads1022 total (54 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for diagrams-qrcode-1.2

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