Re: [Haskell-cafe] Exception: Too many open files

23 Oct
2006
23 Oct
'06
7:19 p.m.
On Tuesday 24 October 2006 00:58, Greg Fitzgerald wrote:
test = print . take 3 =<< parseFiles
I haven't had time to double-check this code, but something like this ought to work (no 'unsafe' operations!): test = sequence . take 3 . map (print . parseFile) =<< getFileFPs
Let me know how it goes.
Indeed, the following works: test = sequence . take 3 . map (\fp -> print =<< parseFile fp) =<< getFileFPs Thanks, Bas.
6785
Age (days ago)
6785
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bas van Dijk