Add import and module support #124
No reviewers
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#124
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "import"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
#83 got closed due to me deleting the
dev
branch, so I now reopen it, including several finishing touches.I am planning to merge this and make a new release with it in the next days. Again, sorry for the long hold-up, but fixing the low-level bug (see below) took a good bit of time and this caused me to put this off again and again.
In addition to what was last added to #83, this branch also contains the following changes:
Merge in current master
Fix bug in lower-level parts of
brittany
that led to discarding certain alternatives with theIEThingWith
layouters. Seeaf7f9017b8
, which is a one-liner fix, that nonetheless was rather time-consuming to diagnose.Prevent hanging indent for IEThingWith. This is a bugfix for the
IndentPolicyLeft
case and an opinionated improvement otherwise:Retain empty lines before the
module
keyword that previously got eaten. Added a newBriDoc
constructor just for this.Add config options
_lconfig_reformatModulePreamble
and_lconfig_allowSingleLineExportList
(defaultsTrue
andFalse
). The former can disable preamble formatting if desired. The latter is again the question of consistency - I like my exports in separate line even if it is just one short thingy. I was so arrogant to set the default according to my preference.Change _lconfig_importColumn default from 60 to 50, as was discussed in #83. I have left the test-config as-is (at 60) because I am lazy.
🎉 Looks great!
cc @sniperrifle2004
Is anything blocking this PR?
Well there is this minor-feature request, which I implemented just now.
But that made me notice this:
currently gives
I'll merge anyway, this feature branch has lived long enough. Presuming the CI comes out green. There will be minor stuff to fix anyway in the future I guess.
🎉
🎉