$ ln -s /invalid invalid
$ ghci
λ import System.Directory
λ getModificationTime "invalid"
*** Exception: invalid: getModificationTime:getFileStatus: does not exist (No such file or directory)
I think it should return the modification time of the link itself