We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes, for version 40, I get the error: (Array.!): undefined array element
This happens when trying to encode the following text that has 4225 characters, in Alphanumeric mode, with error level L:
"16-KVRR2GX*O31Z4OPG.V.1U:L439+IO6GBLHXE5XBU-VML$84-K %NQ6Z ED000N9I.3.TV:QBSNUU000SAX3V%D+1NZL:Q7:R0G27ODAPBAS6X XJKX KBIBZSU647720$1K*I$3QU2D79FOLJ $WP5T9SH%A2L%J*L::*B$Q$9V3ITWSMYRFZGM1BT+2KYPXA+RIFS1O*SLB8*VN1W-XD*ZH%IN:JGDU5TJ:STH3T$ 3DQHRHL2C*535$*UA4PV+5::3E.S$U:84N6SL*.1$5QEBS$7*F2YG.U2B$B6E26480:+RQ$ZG2E*7G$%SW7%5KZVPYIQ76A-$D+:71:H:PQOU51O8W9C%KMBD8IWDKB$AMVNKO5N09S4D3JSYR LVDYVDB4 V*T4VYH$D3D0RE3KAN:RP6LGJZYN*H5TF34W%SX:ZV216Y XY%.CUN0CDT15+1LE1Z9TNV+0B1:O2D2:300RW1NHJMYT.BW+4UQED0W.FSI4%MQC8X-GEQY:8LHO5ID%O8I8MT.%2YNC21MJCNML.M4I1J3PM-$1R01VANGOS.TIZRF8 C+WY:8%SN0CK+VD8*O*KWVFX7WPZ:SN$C93RYM$2+NLA%CO:9NDM7WZ*-DU9ZY45C:412HDEY%MN4O2-:::*I4TC2411NPZ$.YF7VQ.UORG:Z5 :4M:.:33HU*$R12+*USGHY%.E35WPYKAZI$8L74:TQ7AZZ+AYV8NDBPUU$2 YD%*W8Y%O24 B-MAU+%+5$2 6.1I+DNZY*-14J$R %N6SHD05SD*A54KA$43AG92T %3:8:A9ZCQSPNS5YRY$ZKUKJ$%LI$%0H:48+:PN*AAY%SG+Y:KS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U59B68*A67PZ2LY%I:XE7 R0S-FMS.D7RY3DE.%GKB2S 9VV.9%WN NHKJN-SFKJF7KI3G8BZ8EA1%C6D U:-6A50X6F-QAX*E.3PPAU0HRDHLPF:%W*WPJ3-W%U*:4M6X48:O63.G077C.2UVYODRUL:E:YY+NF31AJ2WU"
The Example.hs code to reproduce the error is:
import Codec.Binary.QRCode main :: IO () main = putStrLn . show . encode (fromJust $ version 40) L Alphanumeric $ "...."
Replace the "...." with the string above and the execution will fail with: (Array.!): undefined array element
If, instead, I am using this code, everything works fine:
import Codec.Binary.QRCode main :: IO () main = putStrLn . show . encode (fromJust $ version 40) L Alphanumeric $ replicate 4225 'A'
The text was updated successfully, but these errors were encountered:
5dabe45 fixes the undefined array element issue however the resultant QR code still seems to be invalid.
undefined array element
Sorry, something went wrong.
No branches or pull requests
Sometimes, for version 40, I get the error: (Array.!): undefined array element
This happens when trying to encode the following text that has 4225 characters, in Alphanumeric mode,
with error level L:
The Example.hs code to reproduce the error is:
Replace the "...." with the string above and the execution will fail with: (Array.!): undefined array element
If, instead, I am using this code, everything works fine:
The text was updated successfully, but these errors were encountered: