Various miscellaneous functions utility functions.
Documentation
thenCmp :: Ordering -> Ordering -> OrderingSource
Given two orderings, returns the second if the first is
EQ
and returns the first otherwise.
expandPathIO :: String -> IO StringSource
Given a file path, if the first character is a ~ then expands the ~ to the users' home directory.
cartProduct :: [[a]] -> [[a]]Source
Compute the Cartesian product of a list of lists.