/haskell-tasuke:bump-cabal-index-statefrom haskell-tasuke
Update Cabal project index-state to the latest timestamp. Use when it needs to bump the cabal index-state.
Ships in haskell-tasuke. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
cabalプロジェクトのindex-stateを最新に更新します。
PR作成に備えてブランチを作成します。
git switch -c bump-cabal-index-state
cabal update
cabal updateの出力から最新のindex-stateタイムスタンプを取得します。
出力例:
Downloading the latest package list from hackage.haskell.org
Package list of hackage.haskell.org is up to date.
The index-state is set to 2026-01-11T09:48:01Z.
通常はcabal.projectファイルに書かれているindex-stateを更新します。
フォーマット: index-state: YYYY-MM-DDTHH:mm:ssZ
index-stateと日時の間にURLが入っていることも稀にあります。
もしcabal.projectに書いていないなら、
cabal.project.localやflake.nixなどに書かれている場合があります。
探して更新してください。
プロジェクトのビルドシステムに応じて動作確認を行います。
Nixを使用している場合は以下のコマンドを実行してください。
nix flake check
Nixを使用していない場合は以下のコマンドを実行してください。
cabal build --disable-optimization --enable-tests all
haskell.nixは最新のindex-stateへの対応に遅れがあります。
そのため最新のindex-stateを使用するとエラーになることがあります。
エラーメッセージに現在認識している最新のindex-stateが表示されます。
例:
> Error: [Cabal-7159]
> Latest known index-state for 'hackage.haskell.org' (2026-01-05T23:03:18Z) is older than the requested index-state (2026-01-11T18:45:48Z).
> Run 'cabal update' or set the index-state to a value at or before 2026-01-05T23:03:18Z.
このエラーが出た場合は、 エラーメッセージに記載されている最新の値を使用してください。
変更した後に再度動作確認を行ってください。
動作確認が成功したらGitにコミットしてください。 動作確認が成功しなければコミットは行わないで完了報告に進んでください。
コミットメッセージのタイトルは、
build(deps): cabalのindex-stateを更新
です。
本文は以下のテンプレートに従ってください。
`cabal.project`の`index-state`を`YYYY-MM-DDTHH:mm:ssZ`に更新しました。
このテンプレートを置き換えて本文を作成してください。
cabal.projectは実際に更新したファイル名に置き換えてください。
大抵はcabal.projectそのままです。
YYYY-MM-DDTHH:mm:ssZは実際の新しいindex-stateに置き換えてください。
ドメイン指定がある場合はindex-stateの前にスペースで囲んで、
hackage.haskell.orgのように更新したドメインを追加してください。
まずGitHubを利用しているか確認してください。 GitHubを利用していない場合はこの手順をスキップしてください。
GitHubを利用している場合は以下のGitコマンドでリモートリポジトリにプッシュしてください。
git push --verbose --set-upstream origin
その後以下のGitHub CLIコマンドでプルリクエストを作成してください。
gh pr create --assignee @me --fill --label "Type: Dependencies" --title "build(deps): cabalのindex-stateを更新"
更新が完了したら以下を報告してください:
index-stateindex-stateindex-stateがcabalの最新index-stateに比べてどれぐらい遅れているかWhat SKILL.md sets; muted values are Claude Code's defaults
mediumOther plugins' skills for the same job
npx claudepluginhub ncaq/konoka --plugin haskell-tasuke19 skills in this plugin
/bracketUse bracket or with-style functions to guarantee resource cleanup even on exceptions instead of separate do blocks. Use when writing or reviewing Haskell code that acquires and releases resources./cabal-commandUse cabal with --disable-optimization for development builds and tests, and add --enable-tests to avoid rebuilds. Use when running or suggesting cabal build or test commands in Haskell development./exceptionDo not throw exceptions from pure code with error or throw, give exceptions structured types, and never silently swallow errors in IO. Use when writing or reviewing Haskell error handling, exceptions, or IO code./exportExplicitly enumerate Haskell module exports instead of exporting everything implicitly, and use re-export sparingly. Use when writing or reviewing Haskell module export lists./function-resultDo not discard a function's final value with return (), pure (), or void; adjust the type to return the value and let the caller discard it when unneeded. Use when writing or reviewing Haskell functions that return unit or discard results./himarihimari is ncaq's rio-like custom Haskell Prelude. Import it with a single `import Himari`, never `import Himari.Prelude` or other submodules directly. Use when writing or reviewing Haskell code in a project that depends on the himari package.