From: Matthijs Kooijman Date: Thu, 6 Aug 2009 17:06:43 +0000 (+0200) Subject: Add isJustM helper function. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=c46bdd4565d8c59c9c7a75ff1d08fdd47be19754;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git Add isJustM helper function. --- diff --git "a/c\316\273ash/CLasH/Utils.hs" "b/c\316\273ash/CLasH/Utils.hs" index 484fe15..aecbfcf 100644 --- "a/c\316\273ash/CLasH/Utils.hs" +++ "b/c\316\273ash/CLasH/Utils.hs" @@ -44,3 +44,5 @@ concatM :: (Monad m) => -> m [a] concatM = Monad.liftM concat +isJustM :: (Monad m) => m (Maybe a) -> m Bool +isJustM = Monad.liftM Maybe.isJust