Contributing¶
This page mirrors the contributor workflow for the repository and gives the docs-site version of the same guidance in /Users/scottpeterson/Dev/PurelyFunctional/HaskellDemo/CONTRIBUTING.md.
Branch And Pull Request Flow¶
main is protected and expects the build-and-test GitHub Actions check before merges.
Recommended flow:
- create a feature branch from
main - make the change locally
- run
cabal test - if docs changed, run
mkdocs build --strict - push the branch and open a pull request
- wait for
Haskell CIbefore merging
If a change touches docs, the Docs and Pages workflows will also run from GitHub.
Local Commands¶
Build:
cabal build
Run tests:
cabal test
Preview docs:
python3 -m venv .venv-docs
source .venv-docs/bin/activate
pip install -r requirements-docs.txt
mkdocs serve
What Makes A Good Change Here¶
Prefer changes that:
- teach one idea clearly
- keep the bridge back to
Scott.FunctionalProgrammingTriadsvisible - favor readable examples over compact but harder-to-teach abstractions