exists :: FileSystem -> Path -> IO Bool
exists (FileSystem fs) p = do
  t <- withCString p $ \path -> c_hdfs_exists fs path
  return $ (0 :: CInt) == t
exists :: FileSystem -> Path -> IO Bool
exists (FileSystem fs) p = do
  t <- withCString p $ \path -> c_hdfs_exists fs path
  return $ (0 :: CInt) == t
exists (FileSystem fs) p = do
  t <- withCString p $ \path -> c_hdfs_exists fs path
  return $ (0 :: CInt) == t