title: How to convert data from IO(String) to String in haskell
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1675366/a-haskell-function-of-type-io-string-string">A Haskell function of type: IO String-&gt; String</a>  </p>
  </blockquote>
  
  
  
  <p>i'm reading some data from a file using the <code>readFile</code> function available in Haskell. But this function returns me some data stored as <code>IO String</code>. Does anybody knows how do I convert this data into a <code>String</code> type (or any function that reads <code>String</code> from a file, without the <code>IO ()</code> type)?</p>