Skip to content
Some really simple path walking tools and utilities for Haskell.
Haskell
Branch: master
Clone or download
Pull request Compare This branch is 12 commits behind Xe:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src/System/Directory
.gitignore
LICENSE
README.md
Setup.hs
pathwalk.cabal

README.md

pathwalk

Some really simple path walking tools and utilities for Haskell.

module Main (main) where

import Control.Monad (forM_)
import Data.List (intercalate)
import System.Directory.PathWalk (pathWalk)
import System.Environment (getArgs)

main :: IO ()
main = do
  rawArgs <- getArgs
  let args = if rawArgs == [] then ["."] else rawArgs
  forM_ args $ \arg -> do
    pathWalk arg $ \root dirs files -> do
      putStrLn root
      putStrLn $ "  dirs: " ++ show dirs
      putStrLn $ "  files: " ++ show files
You can’t perform that action at this time.