Make inlinebind work for non-recursive lets.
[matthijs/master-project/cλash.git] / cλash / CLasH / Utils.hs
index 484fe15ae2e33d43e3dd4b9bfee6fa4ee30117b1..aecbfcf6b9cf2cb4346c2ae8449e419b5c464391 100644 (file)
@@ -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