An open API service indexing awesome lists of open source software.

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.

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
```