Hi,<br>What is right way to do conditional IO?<br>For example, I need to write to file errors only in case they exist, otherwise my function should do nothing:<br><br>handleParseErrors errors <br>  | (not . null) errors =  writeFile &quot;parse-errors.txt&quot; (show errors)<br>
  | otherwise = ?<br><br>What should be an &#39;otherwise&#39; case ?<br>    <br>Thanks!<br>