I noticed today that I can pattern match against lazy bytestrings when using the OverloadedStrings extension:
import Data.ByteString.Char8 ()import Data.ByteString.Lazy.Char8f :: ByteString -> Boolf "abc" = Truef _ = Falsemain = doprint $ f $ fromChunks ["abc"]print $ f $ fromChunks ["a","bc"]
TrueTrue