ANN: newports.hs utility for freebsd

i have written a small haskell program to solve a problem many users of freebsd may have - knowing what ports have been updated after a daily/weekly etc cvsup. this is a trivial bit of coding hardly worth attention, but if it might be of use to you, you can find it here: http://www.b7j0c.org/content/haskell-newports.html standard disclaimers - coded & tested mildly by me, a hobbyist haskeller

clawsie:
i have written a small haskell program to solve a problem many users of freebsd may have - knowing what ports have been updated after a daily/weekly etc cvsup. this is a trivial bit of coding hardly worth attention, but if it might be of use to you, you can find it here:
http://www.b7j0c.org/content/haskell-newports.html
standard disclaimers - coded & tested mildly by me, a hobbyist haskeller
nice brad, always good to see `scripting' work in Haskell. would you like to wrap it in a .cabal file and upload it to hackage, so people can find it in the future? details on that process here: http://www.haskell.org/haskellwiki/How_to_write_a_Haskell_program and http://cgi.cse.unsw.edu.au/~dons/blog/2006/12/11 Free the source! -- Don

On 6/29/07, brad clawsie
i have written a small haskell program to solve a problem many users of freebsd may have - knowing what ports have been updated after a daily/weekly etc cvsup. this is a trivial bit of coding hardly worth attention, but if it might be of use to you, you can find it here:
http://www.b7j0c.org/content/haskell-newports.html
standard disclaimers - coded & tested mildly by me, a hobbyist haskeller
I don't mean to rain on your parade or anything, but isn't this just a simple: find /usr/ports -mtime -1 or find /usr/ports -mtime -X where X is the number of days? What is the advantage of using Haskell in this case? (And if the answer is involves "Because I wanted to see if I could" or "For fun" or "To learn", then I'm always okay with that.) Bryan (Brad, sorry you got this twice--I didn't send it to the list the first time)

What is the advantage of using Haskell in this case?
bryan is correct! i hesitated to even bother the cafe list with this, considering it is so trivial, but i just wanted to learn a bit more about haskell's file and directory functionality, and this bit of code may be something others can look at for some quickie code samples dons - i will definitely "finish the job" and create a .cabal file, and i will post my learning experiences with the packaging tools on my site as well so other newbies can see how easy it is to create official hackage code thanks!
participants (3)
-
brad clawsie
-
Bryan Burgers
-
dons@cse.unsw.edu.au