commit a6e777c02e55e48442dbe5fa46a58d321570b6a6 parent 7b23d36477fcc438f4087db5bc994eac5bdc66d2 Author: Jared Tobin <jared@jtobin.io> Date: Mon, 13 Jan 2025 00:31:38 +0400 lib: s/index/unsafeIndex Diffstat:
M | lib/Data/ByteString/Bech32/Internal.hs | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Data/ByteString/Bech32/Internal.hs b/lib/Data/ByteString/Bech32/Internal.hs @@ -48,7 +48,7 @@ as_word5 = BS.map f where -- naive word5 -> base32 as_base32 :: BS.ByteString -> BS.ByteString -as_base32 = BS.map (BS.index bech32_charset . fi) +as_base32 = BS.map (BU.unsafeIndex bech32_charset . fi) polymod :: BS.ByteString -> Word32 polymod = BS.foldl' alg 1 where