3 ms·
Yeah, I had forgotten about filterM. By the way, I like the (fmap not . doesFileExist) bit. It´s cleaner and less cluttered than (\f -> doesFileExist f >>= ret
by danidiaz 14y ago
Yeah, I had forgotten about filterM.
By the way, I like the (fmap not . doesFileExist) bit. It´s cleaner and less cluttered than (\f -> doesFileExist f >>= return . not)