:: Ord a => [a] -> [a] -package:containers -package:Cabal -package:integration -package:incipit-base -package:errors -package:base-prelude -package:extra package:safe is:exact

Identical to tail, namely that fails on an empty list. Useful to avoid the x-partial warning introduced in GHC 9.8.
tailErr [] = error "Prelude.tail: empty list"
tailErr [1,2,3] = [2,3]
tailSafe [] = []
tailSafe [1,3,4] = [3,4]