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.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to