[Haskell] Help-me read file

2010-10-18 Thread Gilmara Pompelli
Hello I have a file with 100 lists, with 100 ints. I have to read the file and apply the map and sort functions on lists. II did it to read file: learquivo :: FilePath - IO ([[Int]]) learquivo s = do            conteudo - readFile s            return (read conteudo) But now applying the sort,

Re: [Haskell] Help-me read file

2010-10-18 Thread Henning Thielemann
On Mon, 18 Oct 2010, Gilmara Pompelli wrote: Hello I have a file with 100 lists, with 100 ints. I have to read the file and apply the map and sort functions on lists. II did it to read file: learquivo :: FilePath - IO ([[Int]]) learquivo s = do            conteudo - readFile s            

Re: [Haskell] Help-me read file

2010-10-18 Thread kahl
I have a file with 100 lists, with 100 ints. I have to read the file and apply the map and sort functions on lists. II did it to read file: learquivo :: FilePath - IO ([[Int]]) learquivo s = do            conteudo - readFile s            return (read conteudo) But now