Open Dessix opened 3 years ago
I might be mistaken, but I don't think it would be possible for Floskell to support the new record dot syntax, at least for the moment. Floskell depends on haskell-src-exts
for parsing Haskell sources, and that library won't be receiving updates anymore (and hasn't for a couple of years, I believe). RecordDotSyntax
was implemented after its last update. I ran into a similar scenario with StandaloneKindSignatures
, which causes a Floskell parse error when used.
When using Record Dot Syntax, Floskell is willing to break the code:
By default, this breaks when formatted with the base and cramer styles, and any others which do not use a workaround:
But this workaround preserves compilation across format calls:
... Unfortunately, that workaround immediately breaks most point-free code, including the below:
So far as I can tell, there's no viable configuration that produces the intended behaviour in both scenarios.