Skip to content
cccskills
FreePublished on GitHub

haskell-format

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.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md1.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Format Haskell Source

Format Haskell source files with the project's formatter. .cabal and cabal.project* files are handled by the haskell-cabal-gild skill. Always format before compiling.

Choosing The Formatter

Walk up from the file's directory and choose by project config:

  1. fourmolu.yaml or .fourmolu.yaml selects fourmolu.
  2. .stylish-haskell.yaml selects stylish-haskell.
  3. Otherwise use the first available command in this order: fourmolu, ormolu, stylish-haskell.

This project has fourmolu.yaml, so prefer fourmolu when available.

Format In Place

All supported formatters accept -i:

fourmolu -i <file>
ormolu -i <file>
stylish-haskell -i <file>

Project Automation

This repository has shared PostToolUse hooks under .agents/hooks/, wired from Claude/Codex configuration. The Haskell formatting hook formats changed .hs, .lhs, and .hsig files. Re-read files if the hook reports that it changed them.

Companion

Format .cabal and cabal.project* files with the haskell-cabal-gild skill.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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.

The English summary is being prepared. Showing the original description.

konn/tamagoh3Updated Aug 2, 2026

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.

The English summary is being prepared. Showing the original description.

konn/tamagoh3Updated Aug 2, 2026

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.

The English summary is being prepared. Showing the original description.

konn/tamagoh3Updated Aug 2, 2026

hoogle

Free

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.

The English summary is being prepared. Showing the original description.

konn/tamagoh3Updated Aug 2, 2026

See all skills by konn

Report a problem with this skill