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

https://github.com/dcastro/hsscripts

A bunch of assorted Haskell stack scripts (just 1 for now, more to come)
https://github.com/dcastro/hsscripts

Last synced: about 1 month ago
JSON representation

A bunch of assorted Haskell stack scripts (just 1 for now, more to come)

Awesome Lists containing this project

README

          

# Haskell Scripts

A bunch of assorted Haskell stack scripts.

## DirectDeps.hs

> Usage: stack DirectDeps.hs \ [-s|--stack-path \]

Outputs a list of the direct dependencies of each component of a stack project.

NB: `stack list-dependencies`, on the other hand, when asked for the dependencies of a test component, will output all dependencies of [_all_ test components](https://github.com/commercialhaskell/stack/issues/3695)).

```plain
$ git clone git@github.com:dcastro/hsscripts.git
$ stack DirectDeps.hs ./hsscripts

[
{
"packageName": "hsscripts",
"components": [
{
"target": "hsscripts",
"deps": [
"Cabal",
"aeson",
...
]
},
{
"target": "hsscripts:exe:hsscripts-exe",
"dependsOnLib": true,
"deps": [
"base",
"hsscripts"
]
},
{
"target": "hsscripts:test:hsscripts-test",
"dependsOnLib": true,
"deps": [
"base",
"hsscripts"
]
}
]
}
]
```

## More to come!