on master help sign in
Tidying CONTRIBUTING.md
commit8a41916a596cc5c4eab01089bcb7f02ed2a89c07 authorEdwin Brady <ecb10@st-andrews.ac.uk> dateSun 29 Mar 2015, 17:10 (12 years ago) parent9d7c50a
1 file changed+17−18
CONTRIBUTING.md+17−18
CONTRIBUTING.md+17−18
@@ -1,7 +1,7 @@
11# Contributing to Idris-Dev
22
33The Idris Community welcomes pull requests, bug reporting, and bug squashing!
4−However, we cannot do it all ourself, and want to make it as easy as possible to contribute changes to get things working.
4+However, we cannot do it all ourselves, and want to make it as easy as possible to contribute changes to get things working.
55Here are a few guidelines that we would like contributors to follow so that we can have a chance of keeping on top of things.
66
77## Getting Started
@@ -22,44 +22,43 @@ We do not want you wasting your time, duplicating somebody's work!
2222
2323## The Campsite Rule
2424
25−A basic rule when contributing to Idris is the **campsite rule**: leave the codebase in better condition than you found it.
25+We try to follow the **campsite rule**: leave the code base in better condition than you found it.
2626Please clean up any messes that you find, and don't leave behind new messes for the next contributor.
2727
2828## Contributing to the default libraries.
2929
3030Idris ships with a set of packages in `libs/` that is provided as a default library.
3131
32−+ `prelude` is the bare minimum required for any Idris program to run.
32++ `prelude` is a collection of basic definitions, automatically imported by Idris programs.
3333+ `base` is tried and tested code that may be useful, and has seen active use in multiple projects.
34−+ `contrib` is code that is experimental in design and want to test before possible inclusion in `base`.
35−+ `effects` is an implementation of algebraic effects that is packaged alongside Idris.
34++ `contrib` is code that is experimental in design and that we want to test before possible inclusion in `base`.
35++ `effects` is a library which supports effectful programming.
3636
37−These packages should not be seen as the *standard* as when working with dependent types we do not necessarily know how best to work with dependent types.
37+These packages should not be seen as the *standard* as when working with dependent types; we do not necessarily know how best to work with dependent types yet.
3838These packages offer functionality that can be built on top of when constructing Idris programs.
3939
40−When working with packages in `libs/`, it is important to realise that everything in prelude will be imported automatically, unless given the `--noprelude` option.
41−Likewise, the contents of base are available with no special options.
40+Everything in prelude will be imported automatically, unless given the `--noprelude` option.
41+The contents of base are available with no special options, but modules must be imported.
4242The other two packages that ship with Idris, contrib and effects, require the use of the `-p` command-line argument to bring their contents into the include path.
43−New contributions should probably be sent to contrib first, so that they can get maintained with the Idris distribution.
43+
44+New contributions should be added to the contrib package (never directly to base or prelude!).
4445If they turn out to be widely applicable and useful, they may later be moved into base.
4546
4647As Idris is still being developed we are open to suggestions and changes that make improvements to these default packages.
47−Major changes to the library (or Idris itself) should ideally be discussed first through the project's official channels of communication:
48+Major changes to the library, or Idris itself, should be discussed first through the project's official channels of communication:
4849
49501. The mailing List.
50511. On our IRC Channel `#idris` on freenode, or
51521. As a [Dragon Egg](https://github.com/idris-lang/Idris-dev/wiki/Feature-proposals).
5253
53−Developers then seeking to add content to Idris's prelude and default library, should do so through a PR where more discussion's and refinements can be made.
54+Developers then seeking to add content to Idris's prelude and default library, should do so through a PR where more discussions and refinements can be made.
5455
5556We do not want you wasting your time nor duplicating somebody's work!
5657
57−Of note: developers should be prepared to wait until their PR has been discussed and authorized prior to the PRs inclusion.
58−
5958## Making Changes
6059
6160Idris developers and hackers try to adhere to something similar to the [successful git branching model](http://nvie.com/posts/a-successful-git-branching-model/).
62−The steps are straightforward.
61+The steps are described below.
6362
6463### New contributors
6564
@@ -95,7 +94,7 @@ The remaining steps are the same for both new and existing contributors:
9594
96951. Create, and checkout onto, a topic branch on which to base you work.
9796 * This is typically the master branch.
98− * For your own sanity, please avoid working on the `master` branch.
97+ * Please avoid working on the `master` branch.
9998
10099```
101100$ git branch fix/master/my_contrib master
@@ -128,7 +127,7 @@ $ git diff --check
128127 single space, with blank lines in between, but conventions vary here
129128
1301291. Make sure you have added any necessary tests for your changes.
131−1. Run all the tests to assure nothing else was accidentally broken.
130+1. Run all the tests to ensure nothing else was accidentally broken.
132131
133132```
134133$ make test
@@ -146,12 +145,12 @@ From there you will have to wait on one of the `idris-dev` committers to respond
146145This response might be an accept or some changes/improvements/alternatives will be suggest.
147146We do not guarantee that all requests will be accepted.
148147
149−## Increases chances of acceptance.
148+## Increasing chances of acceptance.
150149
151150To help increase the chance of your pull request being accepted:
152151
1531521. Run the tests.
154−1. Update the documentation, the surrounding one, examples elsewhere, guides, whatever is affected by your contribution
153+1. Update the documentation, the surrounding code, examples elsewhere, guides, whatever is affected by your contribution
1551541. Use appropriate code formatting for both Idris and Haskell.
156155
157156## Additional Resources