Update datadecl branch #161
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#161
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
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?
I have rebased and fixed up the datadecl branch from the latest
brittany
master.https://github.com/eborden/brittany/tree/datadecl
The rebase however makes opening a PR for this branch extremely noisy. I'm not sure how you'd like to proceed with merging it.
that's fine, i can pull the change without using github. will have a look later.
(the github PR interface of course, i still fetch from github..)
done. do you have an overview which data-decl aspects are finished? I assume GADTs are missing, and perhaps multiple-constructor records?
might be feasible/sensible to gradually add support. pattern-match/guard any things we don't support and use exactprint for those.
There is very little that is currently supported, just a simple implementation of records with multiple
deriving
clauses. I haven't had a chance to spend any more time on this, just trying to keep it up to date so I or someone else could possibly come back to it.Current tests are:
It is probably worth defining milestones in this project and determining where are seams are for shipping incremental improvements. Otherwise the monolith will never move.
I would be very happy to get these changes merged into master and released, even if they only represent a subset for formatting data declarations.
https://github.com/lspitzner/brittany/compare/master...lspitzner:datadecl
Edit: Also somehow this issue isn't connected to #47 yet.
Is it possible to look at getting this merged before it bitrots again (hopefully it's not too late).
172866755cc43b49ad82521b6b2917bf08016173..00c6854887f3de22f5e036f652d6f16748a78be4 got merged in
434854f8f3
. Those were rebased commits of the previous datadecl branch. Afaik, any existing data-decl work is on master by now.This does not mean that all datadecls are formatted yet - I think we have not approached the multiple-constructor case. And there might be something unfortunate happening with GADTs atm, but I have not looked into it yet.
I'll close this. Let's use #47 to discuss the remaining items.
Thanks! I must have been using some ancient version.
Awesome to see there is progress and the next release might include the feature :)