Commit Graph

798 Commits (72c9e4c3abdc0e2e312ddad202a24f1628777ebb)

Author SHA1 Message Date
Lennart Spitzner 4ee44388f7 Improve layouting for OpApp (special-case for dollar/HsVar) 2017-05-21 13:43:39 +02:00
Lennart Spitzner b8396da1d6 Refactor Backend.hs (Move stuff to top-level) 2017-05-21 13:17:46 +02:00
Lennart Spitzner 8b7b1334e2 Fix forall type signature layouting 2017-05-18 14:18:10 +02:00
Lennart Spitzner 296629b96c Update README.md (installation); Fix copyright notice 2017-05-17 23:31:20 +02:00
Lennart Spitzner 83ba7803e6 Fix layouting issues in lists/listcomprehension 2017-05-17 23:31:20 +02:00
Lennart Spitzner 56e53a9cbb Apply brittany to `layoutBriDocM` 2017-05-17 21:41:07 +02:00
Lennart Spitzner 6448ee780a Restrict aggressive horizontal alignment (fixes #21)
- Add config values:
  _lconfig_alignmentLimit for roughly "max spaces inserted"
  _lconfig_alignmentBreakOnMultiline for stopping
  alignment after non-singleline-items
2017-05-17 21:34:49 +02:00
Lennart Spitzner 07164b39dc Clean up .cabal file and stack.yaml
(all deps are now on hackage in appropriate form)
2017-05-17 21:28:20 +02:00
Lennart Spitzner 68e77c9337 Fixup for czipwith and Update stack.yaml 2017-05-14 19:32:31 +02:00
Lennart Spitzner 22300d9c62 Minor cleanups 2017-05-14 17:10:20 +02:00
Lennart Spitzner 41a86b2eab Use czipwith package (replacing CZip), Refactor slightly 2017-05-14 17:04:58 +02:00
Lennart Spitzner 4770dbdb7c Remove lens dependency (was not used) 2017-05-14 12:05:19 +02:00
Lennart Spitzner d56c4f5e6b Add more high-level documentation: index, dataflow 2017-05-11 21:48:32 +02:00
Lennart Spitzner eac73c9a7b Add more high-level documentation: theory.md 2017-05-11 17:36:28 +02:00
Lennart Spitzner 7775812cfd Add dataflow documentation graphs 2017-05-10 21:35:13 +02:00
Lennart Spitzner bb7a92bf2b Update README.md: mention alignment is optional 2017-05-02 20:14:59 +02:00
Lennart Spitzner c701e5d00b Fix #26: Fix comment glitch in patternbind layouting
Prevent single-line layout when it would not even be
a single line due to a comment.
This patch might be a bit over-eager in at least one
case (I think you'd get a two-line layout with a
multiway-if and a comment _after_ the where binding).
2017-05-02 17:10:04 +02:00
Lennart Spitzner c3dc3b6074 And one more touch to ExplicitList 2017-05-02 16:32:43 +02:00
Lennart Spitzner ca42178eff Improve tuple layouting (also fixes #18 for tuples) 2017-05-02 16:21:13 +02:00
Lennart Spitzner f6324da600 Fix ExplicitList comment insertion (fixes #18) 2017-05-02 14:20:58 +02:00
Lennart Spitzner 26ffb40fb4 Fixup for config file generation
- fixes a silent bug; behaviour seems not to be affected.
2017-04-16 13:55:49 +02:00
Lennart Spitzner cbeab39b2d Fix comment/eof space handling (fixes #22) 2017-04-15 14:50:55 +02:00
Lennart Spitzner 505ad99f35 Handle InlineSig construct (pragma), fixes #20 2017-04-12 21:47:59 +02:00
Lennart Spitzner acbaba0782 Omit output syntax test for fix-point tests 2017-04-12 14:53:47 +02:00
Lennart Spitzner 14884be8df Minor fixups in docs plus some minor Refactoring 2017-04-12 14:31:53 +02:00
Lennart Spitzner 2dd6fe83f5 Add documentation and examples; Add debugging flag; Minor refactors 2017-03-30 22:47:00 +02:00
Lennart Spitzner 2b30d83fe8 Fix CPP/macro usage for MacOS; Fix minor stuff in .cabal 2017-03-27 16:18:14 +02:00
Lennart Spitzner aa2a8af6e1 Complete basic documentation of BriDoc api 2017-03-17 13:11:12 +01:00
Lennart Spitzner a7e4bdc168 Fix #16; Improve layouting in two cases; Add comments
- the #16 fix is a one-liner:
  Throw `nub` at spacings before pruning.
- Expr/OpApp layouting: Force single-line for children in
  the params-in-multiple-lines-right-of-the-function case.
- Expr/HsIf layouting: Insert a SetBaseY to prevent
  "then"/"else" being placed left of "if".
2017-03-16 23:02:11 +01:00
Lennart Spitzner 19a05d01c4 Add more documentation to BriDoc api 2017-03-08 17:33:56 +01:00
Lennart Spitzner 109163fc4d Remove traceShow statement
fixes #15
2017-03-08 14:55:02 +01:00
Lennart Spitzner 7dc6c525eb Fix minor layouting issue with long guards
(see test multiple-clauses-4)
2017-03-07 21:44:28 +01:00
Lennart Spitzner 00c7384d20 Fix config printing (config file generation) 2017-03-07 21:14:41 +01:00
Lennart Spitzner ed10137174 Add documentation around the BriDoc type/api 2017-03-06 20:49:08 +01:00
Lennart Spitzner cea81d5369 Add indentation to the paragraphs inserted in patterns
Ugly, but fixes #6. Ugly still better than non-valid-haskell result.
2017-03-06 16:56:38 +01:00
Lennart Spitzner 8d163eb099 Improve layouting for equations with multiple clauses
e.g.
func x | x         = simple expression
       | otherwise = 0

This fixes part of #7
2017-03-06 16:03:47 +01:00
Lennart Spitzner df422ffa5f Refactor/Cleanup layoutPatternBindFinal 2017-03-06 15:55:12 +01:00
Lennart Spitzner af38c547e5 Merge pull request #13 from lspitzner/stackage-lts-8.4
Upgrade to Stackage LTS 8.4
2017-03-06 15:33:54 +01:00
Taylor Fausak 2af4b32ce2 Upgrade to Stackage LTS 8.4 2017-03-06 08:21:17 -06:00
Lennart Spitzner bae75182d7 README.md: Fix mentioned config keys 2017-03-06 13:20:26 +01:00
Lennart Spitzner 71d7abc007 Fix config for idemtests (fixup for config setup change) 2017-03-06 12:51:37 +01:00
Lennart Spitzner 575d530188 Use ExactPrintFallback for unknown constructs
fixes #11
2017-03-06 12:45:19 +01:00
Lennart Spitzner 0a907c5594 Add some pending issues testcases 2017-03-01 22:04:41 +01:00
Lennart Spitzner 9421587da9 Merge pull request #8 from tuncer/directory-bound
Fix build by bumping directory upper bound
2017-02-28 00:26:19 +01:00
Tuncer Ayaz 94e0ab1d5a Fix build by bumping directory upper bound 2017-02-11 22:45:39 +01:00
Lennart Spitzner 93611b9a1c Apply brittany 2017-01-31 18:44:39 +01:00
Lennart Spitzner bc70eb07e8 Change config setup(!), Refactor, Update deps
- config now uses foo_bar instead of _foo_bar;
- config now will accept missing keys;
- use latest butcher version;
- improve identity testing by moving into separate file.
2017-01-31 18:43:16 +01:00
Lennart Spitzner 508780466c Adapt for butcher-0.2.0.0 2016-10-01 19:06:55 +02:00
Lennart Spitzner 23936d7522 Write ChangeLog.md 2016-09-06 15:55:42 +02:00
Lennart Spitzner eda83416b4 Bump to 0.7.1.0 2016-09-06 15:29:13 +02:00