Loading…
OotaToshiya
Translation changed |
|
OotaToshiya
Translation uploaded |
|
Loading…
OotaToshiya
Translation changed |
|
OotaToshiya
Translation uploaded |
|
'plan.json' files are generated by [cabal](https://hackage.haskell.org/package/cabal-install)'s [Nix-style local builds](http://cabal.readthedocs.io/en/latest/nix-local-build.html) 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 'PlanJson' data-structure via 'Show' instance [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 '.dot' format [topo] Print plan topologically sorted [license-report] Generate license report for a component (only available when built with 'license-report' flag enabled); see <src/example/cabal-plan.md report example for cabal-plan> (<src/example/cabal-plan.html Pandoc rendered HTML>)
See also ["New things in Haskell package QA" Blogpost](http://oleg.fi/gists/posts/2018-01-08-haskell-package-qa.html) for a description of the 'topo' and 'dot' operations as well as how to enable tab-completion.
'plan.json'ファイルは、[cabal](https://hackage.haskell.org/package/cabal-install)の[Nix-style local builds](http://cabal.readthedocs.io/en/latest/nix-local-build.html)によって生成され、cabal ソルバーによって計算されたビルド/インストールプランに関する詳細情報を含んでいます。
=='cabal-plan'ユーティリティ
'cabal-plan' 実行可能ファイル('exe'
カベールcabal フラグで有効)は、次のようなさまざまなオペレーションを提供します。
[info] 依存関係ツリーの基本レポートを表示する [show]'表示''Show' インスタンスを介して 'PlanJson' データ構造をダンプする [tred] 依存関係ツリーをグラフとして表示する [diff]2つのインストール計画を区別する [list-bins]すべてのバイナリをリストする [list-bin] 単一のバイナリをリストする('cabal list-bin exe:cabal-plan' などのスクリプト作成に役立つ) [fingerprint]依存関係の SHA256合計ハッシュ値を出力する 'ソース tarball とcabal ファイル [dot] '.dot' 形式で依存関係のグラフを生成する [topo] 計画をトポロジ順に印刷する [license-report] コンポーネントのライセンスレポートを生成する('license-report' フラグを有効にして構築された場合にのみ使用可能);<src/example/cabal-plan.md レポートの例カベールcabal-plan>を参照 (<src/example/cabal-plan.html PandocレンダリングHTML>)'topo' および 'dot' 操作の説明とタブ補完を有効にする方法については、["Haskell package QAの新機能"Blogpost](http://oleg.fi/gists/posts/2018-01-08-haskell-package-qa.html)も参照してください。