module Utils.Maybe ( filterMaybe ) where filterMaybe : (a -> Bool) -> Maybe a -> Maybe a filterMaybe cond maybe = case maybe of Just x -> if cond x then Just x else Nothing Nothing -> Nothing