-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into tabsize
- Loading branch information
Showing
379 changed files
with
24,564 additions
and
3,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!stack.yaml | ||
!elm-format.cabal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
/dist/ | ||
/cabal.sandbox.config | ||
/formatted.elm | ||
/_input.elm | ||
/_input2.elm | ||
/.cabal-sandbox/ | ||
/_stdout.txt | ||
*.tix | ||
/.stack-work/ | ||
/tests/elm-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, gender identity and expression, level of experience, | ||
nationality, personal appearance, race, religion, or sexual identity and | ||
orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# stack installation from https://github.com/samdoshi/docker-haskell-stack | ||
FROM buildpack-deps:latest | ||
|
||
ENV STACK_VERSION 1.4.0 | ||
|
||
ENV STACK_DOWNLOAD_URL https://github.com/commercialhaskell/stack/releases/download/v$STACK_VERSION/stack-$STACK_VERSION-linux-x86_64.tar.gz | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PATH $PATH:/root/.local/bin | ||
ENV LANG C.UTF-8 | ||
|
||
RUN apt-get update -q && \ | ||
apt-get install -qy libgmp-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN mkdir -p /root/.local/bin && \ | ||
wget -q -O- $STACK_DOWNLOAD_URL | tar --strip=1 -xvz -C /root/.local/bin/ && \ | ||
chmod +x /root/.local/bin/stack | ||
|
||
|
||
# Install elm-format dependencies | ||
COPY stack.yaml ./ | ||
RUN stack setup | ||
|
||
COPY elm-format.cabal ./ | ||
RUN stack build --only-snapshot | ||
RUN stack build --only-dependencies | ||
RUN stack build --test --only-dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
> 0.1-alpha2 was [announced on the elm-dev mailing list](https://groups.google.com/forum/#!topic/elm-dev/lEzZLg6CvUI) | ||
Hello all! Prompted by Richard and Evan a couple months ago, I (with help from [Martin](https://github.com/avh4/elm-format/commits?author=Janiczek) and [Noah](https://github.com/avh4/elm-format/commits?author=eeue56)) have been working on elm-format, a source code formatter for Elm inspired by [gofmt](https://blog.golang.org/go-fmt-your-code). There are still a few unhandled cases in the far reaches of the syntax space, but elm-format is now ready for use and feedback. | ||
|
||
The goal for elm-format is to make it easy to follow a standard style for Elm code. The standard style is based on the [Elm Style Guide](http://elm-lang.org/docs/style-guide), which aims to be easy to read, produce clean diffs, and encourage well-factored code. | ||
|
||
You can find the downloads and editor integration instructions here (this is the first time I've packaged binaries for multiple platforms, so if you have any problems running it, please let me know): | ||
- https://github.com/avh4/elm-format | ||
- https://github.com/avh4/elm-format#basic-usage | ||
|
||
If you are excited about this kind of tool, please try it out and let me know if anything goes amiss! I have a few more bugs to fix before announcing it more publicly on elm-discuss, and I wanted to give you all a chance to look it over before then. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
> 0.2.0-alpha was [announced on the elm-dev mailing list](https://groups.google.com/d/topic/elm-dev/gR_1ClhZMg0/discussion) | ||
After the tedious work of making the AST retain comments, elm-format-0.2-alpha is ready! Most notable is the switch to 2-space indentation, as [previously discussed on elm-dev](https://groups.google.com/d/topic/elm-dev/1fWxZPcQVqI/discussion). There are also now plugins for LightTable, Emacs, and Vim thanks to @rundis, @Bogdanp, and @ajhager! | ||
|
||
You can find the downloads and editor integration instructions here: | ||
- https://github.com/avh4/elm-format | ||
- https://github.com/avh4/elm-format#basic-usage | ||
|
||
Here's a brief list of changes: | ||
- changed to 2-space indentation | ||
- comments are handled everywhere they can appear | ||
- fixed a unicode problem with console output on Windows | ||
- parentheses in pattern matches are handled correctly, including a workaround for https://github.com/elm-lang/elm-compiler/issues/951 | ||
- triple double quotes in multiline strings are handled correctly | ||
- more than one file or directory can be given on the command line | ||
- added the `--stdin` command line option to support IDE plugins | ||
|
||
Thanks to everyone who helped improve the documentation and to the following for contributing code to this release: | ||
- Noah (@eeue56) | ||
- Martin (@Janiczek) | ||
- Marica (@ento) | ||
- Janis (@jvoigtlaender) | ||
- and to several others who helped improve the documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
**You only want this if you are trying out the Elm-Platform-0.17 release candidate. If you are using Elm-0.16, you want [elm-format-0.2.0-alpha](https://github.com/avh4/elm-format/releases/tag/0.2.0-alpha) instead.** | ||
|
||
> 0.3.0-alpha-elm017rc1-rc1 was a pre-0.3.0-alpha release that works with Elm-0.17-rc1 and was [announced on the elm-dev mailing list](https://groups.google.com/d/msg/elm-dev/M5Bk7yVCOHg/tewWr5YYBgAJ) | ||
Regarding the new syntax for the `module` statement, this version of elm-format will automatically migrate 0.16 files to the 0.17 format. | ||
|
||
Please report any 0.17-specific elm-format issues here to elm-dev, and not to the github issue tracker. | ||
|
||
In addition, expect the next elm-format alpha release shortly after the public Elm 0.17 release. |
Oops, something went wrong.