title: haskell [[Char]] to [[Int]]
body: <p>I've got problem with a Haskell program.
  I'm trying to change <code>[[Char]]</code> to <code>[[Int]]</code>
  I've got</p>
  
  <pre><code>["2","2","1","2,2","1"] 
  </code></pre>
  
  <p>list of char list
  and I'm trying to change it to <code>[[Int]]</code></p>
  
  <pre><code>[[2],[2],[1],[2,2],[1]]
  </code></pre>
  
  <p>I've tried </p>
  
  <pre><code>f :: [String] -&gt; [Int]
  f = map read
  </code></pre>
  
  <p>but it gives me </p>
  
  <blockquote>
    <p>[2,2,1,*** Exception: Prelude.read: no parse</p>
  </blockquote>
  
  <p>Can anybody help me with this?</p>