pablohirafuji / elm-qrcode

QR Code in Elm
http://package.elm-lang.org/packages/pablohirafuji/elm-qrcode/latest
BSD 3-Clause "New" or "Revised" License
42 stars 5 forks source link

toMatrix #11

Closed pravdomil closed 4 years ago

pravdomil commented 4 years ago

I need to create svg path from qr code matrix to create svg graphics containing multiple qr codes.

So I thinking exposing low-level api toMatrix is suitable for those cases?

pablohirafuji commented 4 years ago

I really like the idea of having an opaque type and work with it wherever possible, since its validity is guaranteed (e.g. a List (List Bool) can be modified to not be a valid QRCode). But having the possibility to generate a valid QRCode and not be possible to work with it the way you want is the same of not having the possibility at all since it does not serve your purpose I guess. I will merge and bump the package soon.