on wip-servant-client-jsaddle-016 help sign in
servant/CONTRIBUTING.md
88 lines 3.5 kB history raw
1# Contributing Guidelines
3Contributions are very welcome! To hack on the github version, clone the
4repository. You can use `cabal`:
6```shell
7./scripts/start-sandbox.sh # Initialize the sandbox and add-source the packages
8./scripts/test-all.sh # Run all the tests
9```
11Or `stack`:
13```shell
14stack setup # Downloads and installs a proper GHC version if necessary
15stack build --fast --pedantic # Install dependencies and build packages
16stack test # Run all the tests
17```
19Or `nix`:
20```shell
21./scripts/generate-nix-files.sh # Get up-to-date shell.nix files
22```
24To build the docs, see `doc/README.md`.
26## General
28Some things we like:
30- Explicit imports
31- Upper and lower bounds for packages
32- Few dependencies
33- -Werror-compatible (7.8, 7.10 and 8.0)
35Though we aren't sticklers for style, the `.stylish-haskell.yaml` and `HLint.hs`
36files in the repository provide a good baseline for consistency.
38**Important**: please do not modify the changelog files nor the versions of the servant packages you are sending patches for. We take care of this before every release and do it uniformly for all the servant packages, so there's no need to worry about this for your pull requests.
40## PR process
42We try to give timely reviews to PRs that pass CI. If CI for your PR fails, we
43may close the PR if it has been open for too long (though you should feel free
44to reopen when the issues have been fixed).
46We require two +1 from the maintainers of the repo. If you feel like there has
47not been a timely response to a PR, you can ping the Maintainers group (with
48`@haskell-servant/maintainers`).
50## New combinators
52We encourage people to experiment with new combinators and instances - it is
53one of the most powerful ways of using `servant`, and a wonderful way of
54getting to know it better. If you do write a new combinator, we would love to
55know about it! Either hop on #servant on freenode and let us know, or open an
56issue with the `news` tag (which we will close when we read it).
58As for adding them to the main repo: maintaining combinators can be expensive,
59since official combinators must have instances for all classes (and new classes
60come along fairly frequently). We therefore have to be quite selective about
61those that we accept. If you're considering writing a new combinator, open an
62issue to discuss it first! Or contribute it to the
63[servant-contrib](https://github.com/haskell-servant/servant-contrib) repository.
64You could release your combinator as a separate package, of course.
67## New classes
69The main benefit of having a new class and package in the main servant repo is
70that we get to see via CI whether changes to other packages break the build.
71Open an issue to discuss whether a package should be added to the main repo. If
72we decide that it can, you can still keep maintainership over it.
74Whether or not you want your package to be in the repo, create an issue with
75the `news` label if you make a new package so we can know about it!
77## Release policy
79We are currently moving to a more aggresive release policy, so that you can get
80what you contribute from Hackage fairly soon. However, note that prior to major
81releases it may take some time in between releases.
83## Reporting security issues
85Please email haskell-servant-maintainers AT googlegroups DOT com. This group is
86private, and accessible only to known maintainers. We will then discuss how to
87proceed. Please do not make the issue public before we inform you that we have
88a patch ready.