Skip to content

Hackage documentation #127

Closed

Description

@tfausak

See #125 for context.

Witch’s documentation is not available on Hackage. Their version of GHC is too old. It’s not clear when it will be upgraded.

It’s possible to build documentation in CI. That’s what this issue is for. Here’s what I’d like:

  • Generate documentation in CI as part of the normal build and test process.
  • Add documentation to the build artifact.
  • Upload documentation to Hackage when uploading new releases.

Activity

  1. tfausak commented on May 20, 2025

    @tfausak
    OwnerAuthor
  2. tfausak commented on May 20, 2025

    @tfausak
    OwnerAuthor

    Unfortunately this failed: https://github.com/tfausak/witch/actions/runs/15139967267/job/42561918707#step:6:5

    Uploading documentation artifact/witch-1.3.0.2-docs.tar.gz...
    Error: cabal: '/usr/bin/curl' exited with an error:
    curl: (56) Illegal or missing hexadecimal sequence in chunked-encoding
    

    I'm not sure if this is a transient error or not. Here is the generated documentation from that workflow run: witch-1.3.0.2-docs.tar.gz

  3. tfausak commented on May 20, 2025

    @tfausak
    OwnerAuthor

    As expected, re-running failed because it attempted to re-upload the package itself: https://github.com/tfausak/witch/actions/runs/15139967267/job/42565823558#step:5:12

    This version of the package has already been uploaded.
    
  4. tfausak commented on May 20, 2025

    @tfausak
    OwnerAuthor

    Still failing, even on retry: https://github.com/tfausak/witch/actions/runs/15141971479/job/42570100636#step:4:8

    Uploading documentation artifact/witch-1.3.0.3-docs.tar.gz...
    Error: cabal: '/usr/bin/curl' exited with an error:
    curl: (56) Illegal or missing hexadecimal sequence in chunked-encoding
    
  5. tfausak commented on May 20, 2025

    @tfausak
    OwnerAuthor

    Oh, this is a bug in Cabal: haskell/cabal#10920

  6. tfausak commented on May 20, 2025

    @tfausak
    OwnerAuthor
  7. tfausak commented on May 20, 2025

    @tfausak
    OwnerAuthor

    But also apparently Hackage is now using GHC 9.8.4: https://hackage.haskell.org/package/witch-1.3.0.3/reports/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions