:: Ord a => [a] -> [a] -package:extra -package:universum -package:containers package:hledger-lib

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