:: Ord a => [a] -> [a] -package:rio -package:heaps -package:rebase package:hledger-lib

Reduce a list of statuses to just one of each status, and if all statuses are present return the empty list.