From 0734e5bbe64e1daeaea74cc29a6631d84cf6c3e1 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 30 Jun 2019 11:02:27 -0400 Subject: switch crc24Lazy to use foldl' --- Data/Digest/CRC24.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Data') diff --git a/Data/Digest/CRC24.hs b/Data/Digest/CRC24.hs index e8eec92..4fbb9b1 100644 --- a/Data/Digest/CRC24.hs +++ b/Data/Digest/CRC24.hs @@ -1,5 +1,5 @@ -- CRC24.hs: OpenPGP (RFC4880) CRC24 implementation --- Copyright © 2012 Clint Adams +-- Copyright © 2012-2019 Clint Adams -- This software is released under the terms of the ISC license. -- (See the LICENSE file). @@ -27,4 +27,4 @@ crc24 :: B.ByteString -> Word32 crc24 bs = crc24Lazy . BL.fromChunks $ [bs] crc24Lazy :: ByteString -> Word32 -crc24Lazy = BL.foldl crc24Update crc24Init +crc24Lazy = BL.foldl' crc24Update crc24Init -- cgit v1.2.3