本文へ移動
cccskills
無料GitHub で公開

haskell-cabal-gild

Format Haskell package descriptions and cabal project files with cabal-gild: *.cabal, cabal.project, cabal.project.local, and cabal.project.freeze. Use after editing dependencies or stanzas, when refreshing cabal-gild discover module lists, or when checking cabal file formatting.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

cabal-gild

cabal-gild formats Haskell package descriptions and cabal project files. It normalizes layout, sorts and deduplicates build-depends, and can refresh module lists generated by -- cabal-gild: discover pragmas.

Format In Place

Run on each touched cabal/project file:

cabal-gild --io <file>

Format before compiling.

Check Without Writing

Use check mode to verify formatting without changing files:

cabal-gild -m check --io <file>

Auto-Discovered Module Lists

If a .cabal file contains a pragma like this:

-- cabal-gild: discover src
exposed-modules:

rerun cabal-gild --io <pkg>.cabal after adding or removing modules.

Project Automation

This repository has shared PostToolUse hooks under .agents/hooks/, wired from Claude/Codex configuration.

  • A changed .cabal or cabal.project* file is formatted with cabal-gild --io.
  • A changed .hs, .lhs, or .hsig file refreshes the nearest enclosing .cabal file only if it uses a -- cabal-gild: discover pragma.

Re-read files if the hook reports that it changed them.

Companion

Format Haskell source files with the haskell-format skill.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

haddock

無料

Read Haskell package documentation, Haddock HTML, Hackage pages, or dependency source for cabal nix-style projects. Prefer locally built/cached docs and source from the cabal store, dist-newstyle, plan.json, and repo-cache; fall back to Hackage only for packages outside the project dependency set or when local docs are unavailable.

日本語の概要は準備中です。原文の説明を表示しています。

SoftwareFoundationGroupAtKyotoU/pure-borrow612026年10月4日 更新

haskell

無料

Super-skill for developing Haskell projects with cabal nix-style builds. Orchestrates HLS diagnostics, Haddock, Hoogle, source formatting, and cabal-gild into one workflow. Use when writing, editing, refactoring, building, typechecking, fixing compiler errors, renaming symbols, looking up APIs, or changing dependencies in Haskell projects. Treat cabal.project as the source of truth, prefer HLS before full builds, and prefer local docs over remote lookup.

日本語の概要は準備中です。原文の説明を表示しています。

SoftwareFoundationGroupAtKyotoU/pure-borrow612026年10月4日 更新

Format Haskell source files: *.hs, *.lhs, and *.hsig, with the project's configured formatter: fourmolu, ormolu, or stylish-haskell. Use before compiling, after source edits, and when applying project style.

日本語の概要は準備中です。原文の説明を表示しています。

SoftwareFoundationGroupAtKyotoU/pure-borrow612026年10月4日 更新

hoogle

無料

Search Haskell APIs using Hoogle. Use when working with Haskell projects to look up function signatures, find functions by type, discover library documentation, or identify which module exports an item.

日本語の概要は準備中です。原文の説明を表示しています。

SoftwareFoundationGroupAtKyotoU/pure-borrow612026年10月4日 更新

SoftwareFoundationGroupAtKyotoU のスキルをすべて見る

このスキルの問題を報告する