@hackage cabal-plan0.7.6.1
Library and utility for processing cabal's plan.json file
Categories
License
GPL-2.0-or-later
Maintainer
hvr@gnu.org
Links
Versions
Installation
Tested Compilers
Dependencies (8)
- aeson ^>=2.2.0.0
- base ^>=4.13.0.0 || ^>=4.14.0.0 || ^>=4.15.0.0 || ^>=4.16.0.0 || ^>=4.17.0.0 || ^>=4.18.0.0 || ^>=4.19.0.0 || ^>=4.20.0.0 || ^>=4.21.0.0
- base16-bytestring ^>=1.0.2.0
- bytestring ^>=0.10.8.2 || ^>=0.11.1.0 || ^>=0.12.0.0
- containers ^>=0.6.0.1 || ^>=0.7
- directory ^>=1.3.0.2 Show all…
Dependents (5)
@hackage/ngx-export-distribution, @hackage/ghcup, @hackage/cabal-plan-bounds, @hackage/cabal-helper, @hackage/cabal-flatpak
Package Flags
exe
(on by default)
Enable exe:cabal-plan component
license-report
(off by default)
Enable license-report sub-command (only relevant when the exe flag is active)
_
(off by default)
Enable underlining of primary unit-ids
This package provides a library (see Cabal.Plan) for decoding plan.json files as
well as the simple tool cabal-plan for extracting and pretty printing
the information contained in the plan.json file.
plan.json files are generated by cabal's Nix-style local builds and contain detailed information about the build/install plan computed by the cabal solver.
cabal-plan utility
The cabal-plan executable (enabled via the exe cabal flag) provides various operations:
- info
- Show basic report of dependency tree
- show
- Dump
PlanJsondata-structure viaShowinstance - tred
- Show dependency tree as a graph
- diff
- Diff two install plans
- list-bins
- List all binaries
- list-bin
- List single binary (useful for scripting, e.g.
cabal list-bin exe:cabal-plan) - fingerprint
- Print SHA256 sums of dependencies' source tarballs and cabal files
- dot
- Generate graph of dependencies in
.dotformat - topo
- Print plan topologically sorted
- license-report
- Generate license report for a component (only available when built with
license-reportflag enabled); see report example for cabal-plan (Pandoc rendered HTML)
See also "New things in Haskell package QA" Blogpost for a description of the topo and dot operations as well as how to enable tab-completion.