Lennart Spitzner
48490a7110
Fix handling of comment before data-decl
...
`docWrapNodePrior` caused duplication of offset of `data` keyword
and of comments connected to it.
2019-12-09 11:17:31 -07:00
Evan Rutledge Borden
aeaa043e99
Support building DataDecl with 8.0.2
2019-12-09 11:17:31 -07:00
Lennart Spitzner
2f6967b7b8
Support comments in record data decls
2019-12-09 11:17:31 -07:00
Lennart Spitzner
208a1ceadb
Start making datadecls work with ghc-8.4
2019-12-09 11:17:31 -07:00
Evan Rutledge Borden
57ba88a73c
Work-in-progress add record declaration layout
...
Simple records are supports. The tests cover:
- single records
- multi-field types
- columnized alignment
- basic deriving
- deriving strategies
- existential quanitification
A few items block merger
- retaining comments
A few items can be deferred:
- normal types
- sum types
2019-12-09 11:17:31 -07:00
Lennart Spitzner
4f827491da
Work-in-progress commit (deriving clause..)
2019-12-09 11:17:31 -07:00
Lennart Spitzner
172866755c
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.
2019-12-09 11:17:31 -07:00