Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
156 lines (110 sloc) 6.95 KB

Contributing to Dhall

Am I in the right place?

This repository hosts language-independent features of the Dhall ecosystem:

Issues on this repository typically discuss language design and proposed changes to the language that are not specific to an integration.

For example:

If you want to discuss a specific implementation of the Dhall language, then you usually want to create an issue against the repository for that implementation. The two most common repositories that we often redirect people to are:

What is the correct way to ask a question?

You can either open issues here to ask a question or use Stack Overflow. I (@Gabriel439) subscribe by e-mail to any issues created with that tag.

Do I belong here?

Everybody is welcome! The Dhall community is not an "exclusive" or "elite" club. People of all experience levels can join and begin contributing and should feel comfortable and safe making mistakes.

People of all backgrounds belong here as long as they treat others with dignity and respect and do not harass or belittle others.

How do I change the language?

We make all changes to the language through pull requests to change the files located in the standard directory of this repository.

For simple changes, just begin by opening a pull request. You don't need the change to be pre-approved before opening a pull request since the discussion can happen directly on the pull request conversation.

For more complex changes, you might want the feature to be approved before spending time on creating a matching pull request. You can open an issue discussing your idea first and if the issue is approved then you can proceed with a pull request.

You also don't have to understand how to translate your change to a formal grammar or type-checking judgments in order to propose the change. Just propose your idea and if your idea is approved then you can ask somebody (including @Gabriel439) to formally standardize your change via a pull request for you.

The proposed change should also include some examples that show how it should be used, eventual caveats, etc. These examples should end up in the tests folder, so that all the implementations can verify that their approach is conformant with the changes to the typechecker, import system, etc.

How do changes get approved?

Changes only require approval if they change the standard or Prelude. If a pull request does not require approval, anybody with the "commit bit" (i.e. write access to this repository) can merge it after a 24 hour waiting period. See below for more details about how to obtain the commit bit.

Changes to the standard and Prelude are voted on by actively maintained implementations of the Dhall language. Votes are made using the GitHub pull request review feature. Each implementation gets one vote.

At the time of this writing the two actively supported implementations of Dhall are:

Each of those implementations get one vote cast by the lead contributor for each implementation. In the case of a tie vote the proposal is still approved.

Implementations do not need to be useful or widely used to get a vote. If you create a complete implementation as a side project that nobody uses and does not integrate with anything, you still get to vote on changes to the standard.

Derived implementations do not count as a vote. For example, there are many integrations that are powered by the Haskell integration (such as dhall-to-nix and dhall-to-json), but they do not count as extra votes because they are not a separate reimplementation of the standard.

Proposed changes require a response within 3 days and a vote within a week of submission. The absence of a vote counts as a vote in favor. The process is designed to be quick with a bias to action since if we make mistakes we can always roll them back with a new proposal.

If the change is approved quickly, there is still a minimum 3-day waiting period before merging for changes to the standard.

Soundness of proposed changes

For non-trivial changes there should be a proof-of-concept implementation as a sanity check. Moreover, changes to the type system need to have an informal proof sketch of the following four soundness rules:

  • Type-inference won't diverge
  • If an expression type-checks, normalizing that expression won't diverge
  • Normalizing an inferred type won't diverge
  • Normalizing an expression doesn't change its type

How do I get the "commit bit"?

Just ask! I (@Gabriel439) hand out the commit bit freely to anybody who displays sustained interest in the project, sometimes even if they don't ask. However, you shouldn't assume that you are undeserving if I haven't given you the commit bit. I might just be busy or forgetful, so I appreciate a helpful reminder. You can ask directly by e-mail (see my account profile) or by opening an issue, whichever you prefer.

I hand out the commit bit freely because mistakes are easy to fix or roll back. Learn by doing and get your hands dirty!

You can’t perform that action at this time.