Haskell type error with catch
I am playing with some online examples, and one has this phrase: do ... contents <- getDirectoryContents path `catch` const (return []) But it won't compile for me, and gives the error: No