title: How can I parse the IO String in Haskell?
body: <p>I' ve got a problem with Haskell. I have text file looking like this:</p>
  
  <pre><code>5.
  7. 
  [(1,2,3),(4,5,6),(7,8,9),(10,11,12)].
  </code></pre>
  
  <p>I haven't any idea how can I get the first 2 numbers (2 and 7 above) and the list from the last line. There are dots on the end of each line.</p>
  
  <p>I tried to build a parser, but function called 'readFile' return the Monad called IO String. I don't know how can I get information from that type of string.</p>
  
  <p>I prefer work on a array of chars. Maybe there is a function which can convert from 'IO String' to [Char]?</p>