Open flip111 opened 3 years ago
I'm sorry you had a bad experience trying out Floskell. The error messages are unfortunately quite cryptic sometimes.
Your first issue stems from a left-over closing curly brace on line 18. Remove that and Floskell will accept your configuration file.
The second issue seems to be haskell-src-exts
parser not supporting TypeOperators
too well, as both
instance {-# OVERLAPPABLE #-} (:<:) f A => B f where
and
instance {-# OVERLAPPABLE #-} (f :<: A) => B f where
are accepted.
Given the state of haskell-src-exts
(see also #35), moving to GHC's parser is probably a good idea, but I do not have the time to tackle that change at the moment.
It's cool that you took hindent and tried to improve on it. These days things seem to be a bit in flux with haskell-src-exts and so. Unfortunately the number one alternative ghc-lib-parser is mainly good with parsing, probably no pretty print facilities, though i didn't check it out in depth.
line 195:
first time i tried floskell. Reading through the readme is quite tedious because:
Would be better to put everything in one place and go item by item how to put the config file together with for each item examples. And also what are the defaults for each style or which config can also be passed on command line.
Thanks for the effort with floskell though. Maybe i give it another look some time.