:: Ord a => [a] -> [a] -package:ghc -package:lens -package:statistics -package:Cabal-syntax is:exact -package:Cabal -package:safe -package:hxt -package:imports package:errors

A minimum that fails using mzero
A maximum that fails using mzero
tailSafe [] = []
tailSafe [1,3,4] = [3,4]