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

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.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.1 KB

SKILL.md(原文)

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

Haskell Development Super-Skill

This is the entry point for Haskell development in this repository. It coordinates the Codex skills with the agent-agnostic repository policy in AGENTS.md:

  • Hoogle lookup maps to .codex/skills/hoogle.
  • Haddock dependency documentation lookup maps to .codex/skills/haddock.
  • Formatting maps to .codex/skills/haskell-format, .codex/skills/haskell-cabal-gild, and the shared hooks under .agents/hooks/.
  • Prefer HLS when available before falling back to full Cabal builds.

Ground Rules

  • Use cabal nix-style builds. cabal.project and cabal.project.local are the source of truth.
  • Do not use stack or invoke ghc directly for normal validation.
  • In a multi-package project, work on and build one package at a time with cabal build <pkg>. Get it green before moving to another package.
  • Format changed .hs, .lhs, and .hsig files with the haskell-format skill before compiling.
  • Format changed .cabal, cabal.project, cabal.project.local, and cabal.project.freeze files with the haskell-cabal-gild skill before compiling.
  • Prefer (<>) over (++) for all concatenation, including lists and strings.
  • There is no package.yaml/hpack in this repository; edit .cabal files directly.

Workflow

  1. Inspect the relevant package and existing conventions before editing.
  2. Edit the smallest reasonable surface and format changed files.
  3. Use HLS diagnostics, hover/types, go-to-definition, references, or rename when available before running a full build.
  4. Look up APIs as needed, preferring local information:
    • Use the haddock skill for local Haddock docs and dependency source.
    • Use the hoogle skill for name or type-signature search.
    • Use remote Hoogle or Hackage only when local search is insufficient.
  5. Build with cabal build <pkg> once quick diagnostics are clean or unavailable.
  6. Test with cabal test <pkg> or the specific test target relevant to the change.

Dependency Changes

  • Edit .cabal files or cabal.project according to the project layout.
  • Reformat cabal/project files with haskell-cabal-gild.
  • Run cabal build <pkg> for affected packages.
  • Run cabal build all only when a dependency or build-plan change needs broad validation or refreshed local docs.

Companion Tools

NeedUse
Typecheck, types, definitions, references, renameHLS when available
Format .hs, .lhs, .hsig sourceshaskell-format
Format .cabal and cabal.project* fileshaskell-cabal-gild
Read dependency docs or sourcehaddock
Find a function by name or typehoogle

レビュー

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

同じリポジトリのスキル

概要と使いどころ

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.

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

konn/tamagoh32026年8月2日 更新

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.

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

konn/tamagoh32026年8月2日 更新

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.

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

konn/tamagoh32026年8月2日 更新

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.

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

konn/tamagoh32026年8月2日 更新

konn のスキルをすべて見る

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