You want the foldl' from Prelude (which works on lists), not Data.ByteString (which works on bytestrings). You don't have to import anything since Prelude is imported automatically.
foldl'
Prelude
Data.ByteString