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)
- Host: GitHub
- URL: https://github.com/dcastro/hsscripts
- Owner: dcastro
- License: bsd-3-clause
- Created: 2018-01-02T18:06:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T18:07:38.000Z (over 8 years ago)
- Last Synced: 2025-02-25T09:47:32.614Z (over 1 year ago)
- Language: Haskell
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
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!