
Can I get a hint how to do this: Given a directory D and a file extension E, find the newest file in D among all files with extension E. I wouldn't mind if you point me to the functions that are useful and leave the rest as an exercise. Or even just point me to the module(s) that is(are) useful. Thanks, Mike

On Wed, 2010-06-23 at 20:56 -0700, Michael Mossey wrote:
Can I get a hint how to do this:
Given a directory D and a file extension E, find the newest file in D among all files with extension E.
I wouldn't mind if you point me to the functions that are useful and leave the rest as an exercise. Or even just point me to the module(s) that is(are) useful.
http://www.haskell.org/onlinelibrary/directory.html does not work for you?

Sean Perry wrote:
On Wed, 2010-06-23 at 20:56 -0700, Michael Mossey wrote:
Given a directory D and a file extension E, find the newest file in D among all files with extension E. http://www.haskell.org/onlinelibrary/directory.html does not work for you?
That looks good. I'll see if I can get it to work. Thanks, Mike
participants (2)
-
Michael Mossey
-
Sean Perry