[Haskell-beginners] cascade of if statements
Sean Perry
shaleh at speakeasy.net
Mon Nov 5 23:22:09 CET 2012
On Oct 31, 2012, at 3:25 AM, Emmanuel Touzery wrote:
> I am checking if a file exists... and then if it exists I'm checking whether it's older than two hours from now. It is a bit annoying to have that second block in the else (i could make a second function but i think it all belongs in this function).
Check out this section of Real World Haskell. It should give you ideas.
http://book.realworldhaskell.org/read/io-case-study-a-library-for-searching-the-filesystem.html
More information about the Beginners
mailing list