[Haskell] howto implement the getDirectoryContents by hand