tails +base

tails :: [a] -> [[a]]
base Data.List
The tails function returns all final segments of the argument, longest first. For example, > tails "abc" == ["abc", "bc", "c",""]