1 2 3 4 5 6 7 8 9
{-# LANGUAGE NoDoAndIfThenElse #-} module NoDoAndIfThenElse where foo :: IO () foo = do if True then return () else return ()