isSuffixOf package:ihaskell

The isSuffixOf function takes two lists and returns True iff the first list is a suffix of the second.
>>> "ld!" `isSuffixOf` "Hello World!"
True

>>> "World" `isSuffixOf` "Hello World!"
False
The second list must be finite; however the first list may be infinite:
>>> [0..] `isSuffixOf` [0..99]
False

>>> [0..99] `isSuffixOf` [0..]
* Hangs forever *