Lennart Spitzner
135460622f
Bump to 0.8.0.1; Add changelog
2017-06-03 18:22:59 +02:00
Lennart Spitzner
f350113f7f
Refactor all modules: +Internal; Add public Brittany module
2017-05-22 21:25:08 +02:00
Lennart Spitzner
5dbe0f2c9c
Add function pureModuleTransform
2017-05-22 21:06:02 +02:00
Lennart Spitzner
2dfa691f9e
Rename /docs -> /doc
2017-05-22 16:51:49 +02:00
Lennart Spitzner
72c87b7b4e
Auto-reformat Main.hs
2017-05-22 15:58:04 +02:00
Lennart Spitzner
fd9427754e
Add "hackAroundIncludes" option (default false)
...
- Makes brittany work in stdin/stdout mode when
CPP usage is limited to #includes.
2017-05-22 15:49:18 +02:00
Lennart Spitzner
3957272c10
Improve backwards-compat for config (manual FromJson)
2017-05-22 15:45:14 +02:00
Lennart Spitzner
8f1e366f9c
Change config file structure; Add config version tag
2017-05-21 16:48:05 +02:00
Lennart Spitzner
647fa94ef3
Reword docs: Mention that BriDoc trees are DAGs
2017-05-21 13:56:20 +02:00
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