返回 Skill 列表
extension
分类: 开发与工程无需 API Key

hackage-upload

将Haskell包上传到Hackage。当用户要求发布、发行或上传到Hackage时使用。

person作者: jakexiaohubgithub

Hackage Upload

Instructions

When the user asks to publish or upload to Hackage:

  1. Get the current version from claude.cabal:

    grep "^version:" claude.cabal
    
  2. Create the source distribution:

    cabal sdist
    
  3. Upload to Hackage (replace X.Y.Z with actual version):

    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.