ghc-parmake-0.1.9: A parallel wrapper for 'ghc --make'.
GHC.ParMake.Common
Synopsis
andM :: Monad m => [m Bool] -> m Bool Source #
appendMap :: (t -> a) -> [t] -> [a] -> [a] Source #
Map f over l and then append rest to l. More efficient than doing `map f l ++ rest`.
firstM :: Monad m => [a] -> (a -> m Bool) -> m (Maybe a) Source #
maybeRead :: Read a => String -> Maybe a Source #
pathToMaybe :: FilePath -> Maybe FilePath Source #
uniq :: Eq a => [a] -> [a] Source #
Remove consecutive duplicate elements from a list. Example: uniq [3,3,3] = [3].