Commit Graph

531 Commits (c36ecd47181d52e3b3fb648b869d5acdd215155b)

Author SHA1 Message Date
Jonas Schürmann c36ecd4718
README: Fix typo 2019-08-22 12:53:17 +02:00
Lennart Spitzner 5bf295d082
Merge pull request #247 from pepeiborra/master
Add support for Implicit Params
2019-07-24 00:09:35 +02:00
Lennart Spitzner 6c69388d73
Make errors more descriptive
This is defensive against GHC API guarantees.
2019-07-19 00:12:04 +02:00
pepe iborra a79b5e1a4b Add support for Implicit Params
I don't know what I'm doing, but it type checks

Closes #246
2019-07-14 23:31:11 +01:00
Evan Borden 988d5b4353
Add support for OverloadedLabels
`OverloadedLabels` is a simple enough extension to parse and format. It
is becoming more common with use of `generic-lens`. Since it can be
treated as a `HsVar` its implementation only requires using `docLit`,
along with some marshalling for dealing with `FastString`.
2019-06-23 19:31:05 -05:00
Lennart Spitzner 56f93ba3bb readme: Update paragraph on maintenance/contribution 2019-06-18 15:38:19 +02:00
Lennart Spitzner c818cdae52 Update copyright notice in readme also 2019-06-17 22:39:02 +02:00
Lennart Spitzner b2d8a1ed51 Bump to 0.12.0.0, Update copyright, readme, changelog 2019-06-17 10:54:33 +02:00
Lennart Spitzner 3288ef3bd4 For funs with multiple matches, use the match id as id (fixes #234) 2019-06-16 22:51:18 +02:00
Lennart Spitzner b95bc09a9d Bump upper bound to hspec<2.8 2019-06-12 12:58:08 +02:00
Lennart Spitzner 2b95e747cd Update stack.yaml to allow testing nightly again 2019-06-12 10:44:09 +02:00
Lennart Spitzner 42f566b94a Support QuasiQuotation-splices 2019-06-12 09:17:21 +02:00
Lennart Spitzner 305f98fad7 Update .travis.yml for current ghc versions 2019-06-06 00:34:17 +02:00
Lennart Spitzner 42b9ddaf0f Merge pull request #222 from tchajed/stack-13.14-compat 2019-06-06 00:25:13 +02:00
Lennart Spitzner 3e1938aa7f Merge branch 'master' into stack-13.14-compat
# Conflicts:
#	brittany.cabal
2019-06-05 22:54:18 +02:00
Lennart Spitzner e9a37242ae
Merge pull request #230 from alanz/master
Allow ghc-exactprint-0.6.1
2019-06-05 22:48:29 +02:00
Lennart Spitzner 078f666fd6
Merge pull request #221 from hackeryarn/patch-1
Added Emacs to Editor Integration
2019-06-05 22:46:10 +02:00
Lennart Spitzner 517eda8526 Merge pull request #216 from matt-noonan/master 2019-06-05 22:41:22 +02:00
Lennart Spitzner 4f2673a2eb
Merge pull request #215 from matt-noonan/multiline-app-with-comments
Disable single-line HsApp with argument comments.
2019-06-05 21:06:02 +02:00
Lennart Spitzner f9d70cf546 Refactor CPP slightly, Add test-cases 2019-06-05 21:05:27 +02:00
Lennart Spitzner 09a227fcce Add quick regression-test for fixed issue 2019-06-05 20:12:28 +02:00
Lennart Spitzner 77032326ae
Merge pull request #213 from bsima/nix-build
Add build instructions for nix
2019-06-05 20:07:38 +02:00
Lennart Spitzner 059bb9402e Merge pull request #198 from ruhatch/type-synonyms 2019-06-05 15:56:50 +02:00
Lennart Spitzner ca3c8b6f9e Add one source doc 2019-06-05 15:56:32 +02:00
Lennart Spitzner bd8b743e36 Document terminology "regular comments" 2019-06-05 15:42:47 +02:00
Alan Zimmerman d161648f24 Allow ghc-exactprint-0.6.1 2019-06-02 22:53:00 +02:00
Tej Chajed ffc1e6918c
Add stack configuration for GHC 8.6 2019-05-31 17:00:38 -04:00
Artem Chernyak ff7dca9bb5
Added Emacs to Editor Integration 2019-03-12 21:29:12 -05:00
Matt Noonan 8551600377 Explicitly handle empty HsCase and HsLamCase. 2019-02-04 22:56:46 -05:00
Matt Noonan 6aa537089d Disable single-line HsApp with argument comments. 2019-02-04 15:10:55 -05:00
Ben Sima e67a46f264 Refactor nix expressions
This way, the default.nix file can be imported to other projects. In order to
build brittany, we now need to do `nix build -f release.nix`, which will
pull in the version overrides from shell.nix.
2019-01-29 14:07:08 -08:00
Ben Sima f68fbb3118 Add build instructions for nix 2019-01-26 10:55:29 -08:00
Lennart Spitzner 6c187da8f8 Fix cabal file for doc project 2018-11-30 22:13:02 +01:00
Lennart Spitzner 784e4d0aed Fix prelude.inc handling in .cabal to make new-install work
Hopefully fixes both #162 and #200.
2018-11-30 00:18:54 +01:00
Lennart Spitzner 621e00bf3f Fix indentation (comments) after "if" (Fixes #167) 2018-11-14 14:53:08 +01:00
Rupert Horlick 01e31b4256
Add type fam instance formatting 2018-11-13 17:07:27 -04:00
Lennart Spitzner 1290e8cd27 Bump CI ghc versions (8.4.3->8.4.4, 8.6.1->8.6.2) 2018-11-12 19:00:21 +01:00
Lennart Spitzner 2fb8871d70 Merge branch 'ghc-8.6' 2018-11-12 18:58:16 +01:00
Lennart Spitzner e7d8f59e93 travis-ci: Add ghc-8.6, Clean up a bit 2018-11-04 22:14:02 +01:00
Lennart Spitzner 34735e27ef Add compat with GHC-8.6 API 2018-11-04 22:14:00 +01:00
Lennart Spitzner 9d915232c0 Merge branch 'where-newlines' 2018-11-04 19:23:50 +01:00
Lennart Spitzner 2eb22e730f Add tests for empty lines around where 2018-11-04 18:13:37 +01:00
Lennart Spitzner 522e40c8ed Retain empty lines before "where"
only applies to local "where"s (not module..where)
2018-11-04 18:13:37 +01:00
Lennart Spitzner 268cd333f3
Merge pull request #189 from ruhatch/type-synonyms
Add type synonym formatting
2018-11-04 18:05:29 +01:00
Lennart Spitzner ad5868eb76 Fix spacing bugs, Clean up implemenation
- Normalize spaces on type alias lhs. unnecessary spaces were
  retained previously, e.g.
  "type   (   (   a  :%:   b   ) c   ) = (a , c)"
  had non-optimal output
- Clean up separator usage
- Remove backend hacks (to some degree)
- Minor reformatting and premature optimization
2018-10-27 16:15:28 +02:00
Rupert Horlick e7d8b5f1ab
Fix type synonym comments 2018-10-19 15:55:29 -04:00
Rupert Horlick b249c10054
Deal with parens inside comments on 8.4.3 2018-10-17 17:01:31 -04:00
Rupert Horlick e1b43531a8
Add type synonym formatting 2018-10-16 19:28:30 -04:00
Lennart Spitzner d769f30c15 travis: Prevent duplicate compilation 2018-10-14 18:25:39 +02:00
Lennart Spitzner 9de3564e00 travis: Apply fix to stack and new-build too 2018-10-14 00:56:35 +02:00