import Data.Maybe (isJust) a = Just 1 b = Just 'c' c = Just "hello" test = isJust $ do a b c main = print test