Skip to content

Commit

Permalink
Top-level CONTRIBUTING.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Aug 31, 2024
1 parent 4a50db6 commit 6addd63
Show file tree
Hide file tree
Showing 18 changed files with 57 additions and 47 deletions.
57 changes: 57 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Cloud Haskell contributor guidelines

## Building

After cloning, you should be able to build all packages in this repository like so:

```
$ cabal build all
```

You can also build a specific package like so:

```
cabal build <some-package>
```

You can have more control over the behavior of `cabal` by configuring, first. For example, if you want to disable optimizations for faster compilation:

```
$ cabal configure --disable-optimization
$ cabal build all
```

The allowed arguments for `cabal configure` are [documented here](https://cabal.readthedocs.io/en/stable/cabal-project-description-file.html#global-configuration-options).

Tests for all packages can be run with:

```
$ cabal test all
```

or again, you can test a specific package `<some-package>` using:

```
$ cabal test <some-package>
```

### Building with specific dependencies

Often, we want to build a package with a specific version of a dependency, for testing or debugging purposes. In this case, recall that you can always constrain cabal using the `--constraint` flag. For example, if I want to build `distributed-process-async` with `async==2.2.5`:

```
$ cabal build distributed-process-async --constraint="async==2.2.5"
```

## Contributing changes upstream

To contribute changes, you first need a fork. First, fork the `distributed-process` repository following the [instructions here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo).

Then publish branches:

```
$ cabal test all # Check that everything works before proceeding.
$ git push --set-upstream <username> <branch-name>
```

Then you can [create a pull-request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) to contribute changes back to `distributed-process`.
1 change: 0 additions & 1 deletion packages/distributed-process-async/CONTRIBUTING.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/distributed-process-async/Setup.lhs

This file was deleted.

3 changes: 0 additions & 3 deletions packages/distributed-process-client-server/Setup.lhs

This file was deleted.

3 changes: 0 additions & 3 deletions packages/distributed-process-execution/Setup.lhs

This file was deleted.

3 changes: 0 additions & 3 deletions packages/distributed-process-extras/Setup.lhs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/distributed-process-simplelocalnet/Setup.hs

This file was deleted.

3 changes: 0 additions & 3 deletions packages/distributed-process-supervisor/Setup.lhs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/distributed-process-systest/Setup.hs

This file was deleted.

1 change: 0 additions & 1 deletion packages/distributed-process-tests/CONTRIBUTING.md

This file was deleted.

13 changes: 0 additions & 13 deletions packages/distributed-process-tests/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions packages/distributed-process-tests/Setup.hs

This file was deleted.

1 change: 0 additions & 1 deletion packages/distributed-process/CONTRIBUTING.md

This file was deleted.

2 changes: 0 additions & 2 deletions packages/distributed-static/Setup.hs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/network-transport-inmemory/Setup.hs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/network-transport-tcp/Setup.hs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/network-transport/Setup.hs

This file was deleted.

2 changes: 0 additions & 2 deletions packages/rank1dynamic/Setup.hs

This file was deleted.

0 comments on commit 6addd63

Please sign in to comment.