cabal-debian-4.25: src/Data/Maybe/Extended.hs
module Data.Maybe.Extended ( module Data.Maybe, nothingIf ) where import Data.Maybe nothingIf :: (a -> Bool) -> a -> Maybe a nothingIf p x = if p x then Nothing else Just x
module Data.Maybe.Extended ( module Data.Maybe, nothingIf ) where import Data.Maybe nothingIf :: (a -> Bool) -> a -> Maybe a nothingIf p x = if p x then Nothing else Just x