Skip to content
Back to skills

Hackage Upload

ASecurity

Upload Haskell packages to Hackage. Use when the user asks to publish, release, or upload to Hackage.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
documentationbash

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill hackage-upload --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hackage Upload?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hackage Upload
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-hackage-upload/badge)](https://www.skillsdirectory.com/skills/majiayu000-hackage-upload)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hackage-upload
description: Upload Haskell packages to Hackage. Use when the user asks to publish, release, or upload to Hackage.
---

# Hackage Upload

## Instructions

When the user asks to publish or upload to Hackage:

1. **Get the current version** from `claude.cabal`:
   ```bash
   grep "^version:" claude.cabal
   ```

2. **Create the source distribution**:
   ```bash
   cabal sdist
   ```

3. **Upload to Hackage** (replace X.Y.Z with actual version):
   ```bash
   cabal upload --publish dist-newstyle/sdist/claude-X.Y.Z.tar.gz
   ```

## Pre-release checklist

Before uploading, ensure:
- Version in `claude.cabal` has been bumped
- `CHANGELOG.md` has an entry for this version
- All tests pass (`cabal test`)
- Code compiles without warnings (`cabal build`)

## Notes

- The `--publish` flag publishes immediately. Without it, the package is uploaded as a candidate.
- You must have Hackage credentials configured (typically in `~/.cabal/config`).
- First-time uploads of a package require manual approval on Hackage.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.