Closed miguel-negrao closed 1 year ago
Build is failing. Have to check if this is caused by fourmolu...
Thanks a lot!
Build is failing. Have to check if this is caused by fourmolu...
Indeed it is. It seems the issue is that fourmolu converts multiline haddocks to single line haddocks, and then chokes on the enumeration. Since the enumeration seems to be correctly rendering haddock, I'd leave it and instead configure fourmolu to use multiline.
function-arrows: trailing
is the default, so I left that out. Check if I applied the correct settings. If we manage to get some settings that look ok it would be nice to have this, takes a bit of mental work of our shoulders :-) . If we want we can add a CI step to check that formatting is ok. It is building with cabal locally, let's see how it goes with the CI.
If we want we can add a CI step to check that formatting is ok.
Yes, definitely! Ideally, every commit should go through the formatter.
I've added formatting checking to the CI. Not a single misplaced whitespace will get through ever again ! :-D
Thanks a lot!
This PR is not for merging, just for discussion.
I've applied formolu v0.9.0.0 to the source code. I tried to pick all the options of fourmolu which were most similar to the code base here. There are still some differences such as
{ .. }
being turned into{..}
. @turion have a look at the code and see if you like it. It might be possible to tweak further the config file, but I didn't see anything else obvious.This supersedes #101.