if canRunOperationOn someData then putStrLn ("The operation was successful: " ++ doRunOperationOn someData) else putStrLn "The operation failed!"