[Haskell-cafe] Exception: Too many open files
Bas van Dijk
basvandijk at home.nl
Tue Oct 24 13:33:24 EDT 2006
On Tuesday 24 October 2006 13:03, Henning Thielemann wrote:
> Is it possible to turn it into
>
> parseFiles :: [IO T]
>
> ?
>
> Then you can easily do
>
> sequence (take 3 parseFiles)
Thanks, I think I go for this sollution:
parseFiles :: IO [IO a]
parseFiles = liftM (map parseFile) getFileFPs
test = print =<< sequence . take 3 =<< parseFiles
Bas van Dijk
More information about the Haskell-Cafe
mailing list