:: Ord a => [a] -> [a] package:ghc

Remove duplicates but keep elements in order. O(n * log n)
Temporarily install standard signal handlers for catching ^C, which just throw an exception in the current thread.