Skip to content

fix(packaging): align cabal with AGPL LICENSE, add fmt pre-commit#385

Merged
tonyalaribe merged 1 commit into
monoscope-tech:masterfrom
victalejo:master
May 17, 2026
Merged

fix(packaging): align cabal with AGPL LICENSE, add fmt pre-commit#385
tonyalaribe merged 1 commit into
monoscope-tech:masterfrom
victalejo:master

Conversation

@victalejo

Copy link
Copy Markdown
Contributor

Summary

  • License mismatch (legal bug). monoscope.cabal and package.yaml
    declared BSD3 while LICENSE and the README publish the project under
    AGPL-3.0. Aligns both to AGPL-3.0-only (SPDX), bumps
    cabal-version: 2.0 → 2.2 since SPDX expressions require it.
  • Restore real package metadata. Replaces hpack defaults
    (author: Author name here, maintainer: [email protected],
    github: githubuser/monoscope, copyright: 2021 Author name here) with
    Monoscope / [email protected] / monoscope-tech/monoscope /
    2021-2026 Monoscope. Fixes the derived homepage and bug-reports
    URLs that pointed to a non-existent repo.
  • Auto-format on commit. Adds versioned .githooks/pre-commit that
    runs fourmolu --mode inplace on staged .hs files (skips cleanly if
    fourmolu isn't installed; refuses to format files with unstaged
    edits to avoid swallowing working-tree changes). Documents activation
    in docs/DEVELOPMENT.md and fixes a stale brew install ormolu
    fourmolu in the same section. Goal: stop the recurring
    Auto-format code with fourmolu follow-up commits.

fix(cabal): update cabal version and metadata for consistency
fix(package): correct GitHub repo and update license information
@tonyalaribe

Copy link
Copy Markdown
Contributor

Hi @victalejo,
Thanks for the PR. Looks good.

@tonyalaribe
tonyalaribe merged commit e8b473f into monoscope-tech:master May 17, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants