title: How to catch read error in Haskell
body: <p>I have the following problem, I'm parsing a file a use <code>read</code> to convert <code>Int</code> to <code>String</code>. The problem is when it fails, I have no way to display the string which fails to be parsed. I just get <code>Exception: Prelude.read : no parse</code>.</p>
  
  <p>I tried to write my own <code>myRead</code> function which will use <code>read</code> and throw a more meaningful message but I don't know how to catch the error thrown by <code>read</code>.</p>
  
  <p>Alternatively, is there any other way to find what's not been read properly (using debugger or trace ?)</p>