title: Parsing an input file file in Haskell
body: <p>Is there any fast way in Haskell to cast an input file like that into corresponding types? For example a function that takes a string and produces a list of <code>Int</code>s? Or do I need to parse it manually using <code>getLine</code> and parse the string?</p>
  
  <pre><code>10.
  10.
  [4, 3, 2, 1].
  [(5,8,'~'), (6,4,'*'), (7,10,'~'), (8,2,'o')].
  [4,0,9,4,7,5,7,4,6,4].
  [4,10,0,6,6,5,6,5,6,2].
  </code></pre>