
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.