<div dir="ltr">Hi the list,<br><div>why do this function doesn't compile (parse error):<br><br><span style="font-family:courier new,monospace">test :: Bool -> IO ()<br>test foo = do<br> let bar = case foo of <br> True -> "Foo"; <br>
False -> "Bar"<br> return ()</span><br><br></div><div>while this one does (just adding one space in front of True and False):<br><br><span style="font-family:courier new,monospace">test :: Bool -> IO ()<br>
test foo = do<br> let bar = case foo of <br> True -> "Foo"; <br> False -> "Bar"<br> return ()</span><br><br><br></div><div>Thanks!!<br></div><div>Corentin<br></div></div>