a = Just 1 b | a == Just 1 = 2 | otherwise = 4 main = putStrLn . show $ b
Standard input is empty
2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!