Commit Graph

298 Commits (041c5263c2c8b91260e356911b1167efee04c1c3)

Author SHA1 Message Date
Evan Rutledge Borden 041c5263c2 Make record declarations respect alignment
This commit introduces tests for aligned record declarations. It
utilizes docCols and introduces a new `ColSig` for for record
declarations.
2018-01-13 17:31:51 -05:00
Lennart Spitzner 55f636fcf2
Merge pull request #95 from eborden/datadecl
Format data declarations
2018-01-13 17:10:32 +01:00
Evan Rutledge Borden cde1399c4f Remove docAlt. 2017-12-30 23:07:58 -05:00
Evan Rutledge Borden 011b108558 Work in progress, add record formatting tests. 2017-12-30 22:59:59 -05:00
Lennart Spitzner 2dad7f82fe Work-in-progress commit (deriving clause..) 2017-12-22 15:24:00 +01:00
Lennart Spitzner 3b518ca798 Start impl. layouting for datatypes (#12)
Only newtypes work for now; the "interesting" data records
are not touched yet.

Comment insertion not really considered yet; probably needs work.
2017-12-22 15:24:00 +01:00
Lennart Spitzner f920f4714d Fix maximum on empty list, fixes #88 2017-12-21 21:45:29 +01:00
Lennart Spitzner ac10b903af travis.yml: Set jobs to 1, Pass to stack 2017-12-19 20:05:55 +01:00
Lennart Spitzner 5dac6dd7f2 Add ghc-option -Werror to all builds in .travis.yml 2017-12-19 19:53:26 +01:00
Lennart Spitzner d8097f2862 Add mask_ to prevent "ghc panic" when using timeout on brittany 2017-12-17 15:45:08 +01:00
Lennart Spitzner 39dc6d5d2d Merge branch 'master' into dev 2017-12-15 20:56:56 +01:00
Lennart Spitzner a24f092aac Update doc-svg-gen.cabal to prevent new-configure annoyance 2017-12-15 20:55:31 +01:00
Lennart Spitzner f7e5287f1d
Update README.md (0.9.0.0 changes, widget) 2017-12-15 15:13:11 +01:00
Lennart Spitzner 9700fb2a50
Merge pull request #82 from matthew-piziak/tuple-section-support
Tuple section support (fixes #41)
2017-12-15 00:49:57 +01:00
Matthew Piziak 9704fc3490
add tuple section tests 2017-12-14 18:15:07 -05:00
Matthew Piziak b731cd15e7
capture starting layout 2017-12-14 16:17:39 -05:00
Lennart Spitzner 0036dbf410 Add some documentation for `layoutPat` 2017-12-11 17:13:33 +01:00
Lennart Spitzner 95e4346742 one fixup addition to the 0.9.0.0 changelog 2017-12-11 17:10:58 +01:00
Lennart Spitzner 442f32aef9
Update README.md: stack with recent resolver 2017-12-11 17:10:27 +01:00
Lennart Spitzner be4d0f8333
Merge pull request #78 from damienflament/archlinux-installation
Readme: Add ArchLinux installation
2017-12-11 16:48:05 +01:00
Damien Flament b79a0908c8 Added link to the AUR package 2017-12-11 16:44:39 +01:00
Damien Flament 07b928b00c Added ArchLinux installation instructions 2017-12-11 13:10:57 +01:00
Lennart Spitzner 63c04e0b66
Merge pull request #75 from lpil/patch-1
Add missing code blocks to layout docs
2017-12-09 16:12:09 +01:00
Louis Pilfold 3130fecf07
Add missing code blocks to layout docs 2017-12-09 15:09:22 +00:00
Lennart Spitzner 4ded834a97 Clean-up cabal file: Remove development flag 2017-12-08 21:14:35 +01:00
Lennart Spitzner 16d5116193 Bump to 0.9.0.0 2017-12-08 21:11:39 +01:00
Lennart Spitzner eba7fc0d37 Add ChangeLog for 0.9.0.0 2017-12-08 19:59:06 +01:00
Lennart Spitzner 39c48b33f1 Fix error in Annotation filtering (fixes #70) 2017-12-08 19:57:16 +01:00
Lennart Spitzner 5bba918705
Merge pull request #66 from eborden/indentpolicyleft
Support IndentPolicyLeft
2017-12-01 00:30:27 +01:00
Lennart Spitzner 072b1cf091 Make macOS the first travis build job (it is slowest) 2017-12-01 00:12:09 +01:00
Lennart Spitzner 127299b442 Merge branch 'dev' into indentpolicyleft 2017-11-30 23:47:18 +01:00
Lennart Spitzner 882a3b1a7a Allow single-line after let with IndentPolicyLeft 2017-11-30 23:20:35 +01:00
Lennart Spitzner 8a401d291e Workaround for #68: trim exactprinted text for unknown nodes 2017-11-28 18:23:05 +01:00
Lennart Spitzner 6a97379b33 Add whitespace around operator in section, Fixes #67 2017-11-28 17:56:28 +01:00
Lennart Spitzner d9155e240d RecursiveDo: Add second layout, Respect IndentPolicyLeft 2017-11-27 23:13:13 +01:00
Lennart Spitzner 466ff237ff Add some comments/examples in layoutStmt 2017-11-27 23:05:47 +01:00
Lennart Spitzner 9e8571b848 Remove an unnecessary node in BriDoc construction; Add TODO 2017-11-27 23:01:32 +01:00
Evan Rutledge Borden f6859d184f Fix tests after rebase. 2017-11-27 13:05:04 -05:00
Evan Rutledge Borden e9a2de7a85 Filter binders with docSetBaseAndIndent. 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden de0851f975 Use docAltFilter for consistency. 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden 35f33c131c Remove duplication in 'let' expression layout. 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden ba3d9ad739 Add tests for record construction. 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden d7ac478fc6 Update type operator pending tests to remove context. 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden 44e95940c0 Change record update syntax for left indent policy 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden a6bea7542b Update pending long operator use for left indent. 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden d1e1984206 Update guard formatting for IndentPolicyLeft 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden f3c37a6abf Update pending long argument test to context free. 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden cd9f7de566 Update pending type operator test for context free. 2017-11-27 18:12:19 +01:00
Evan Rutledge Borden a13a137f68 Add left indent support for statements
This aligns left indent style `let` statements with their expression
form.
2017-11-27 18:12:19 +01:00
Evan Rutledge Borden de5f0401f3 Add consistency between contsrained and unconstrained forall format
Constrained forall formats aligned the `.` to the left. Constrained
formats aligned the `.` to the right. This change adds consistency
between both formats.
2017-11-27 18:12:19 +01:00