Draw QR codes to SVG, PNG, PDF or PS files. https://github.com/prowdsponsor/diagrams-qrcode

Latest on Hackage:1.3

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed and maintained by Felipe Lessa


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


Used by 1 package:
comments powered byDisqus