https://github.com/xe/pathwalk
Some really simple path walking tools and utilities for Haskell.
https://github.com/xe/pathwalk
Last synced: 8 months ago
JSON representation
Some really simple path walking tools and utilities for Haskell.
- Host: GitHub
- URL: https://github.com/xe/pathwalk
- Owner: Xe
- License: mit
- Archived: true
- Created: 2015-10-16T06:41:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-28T15:07:59.000Z (over 10 years ago)
- Last Synced: 2025-10-10T10:58:24.058Z (9 months ago)
- Language: Haskell
- Homepage:
- Size: 213 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pathwalk
========
Some really simple path walking tools and utilities for Haskell.
```haskell
module Main (main) where
import Control.Monad (forM_)
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
```