You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
floskell --config floskell.json $(find . -iname '*.hs')
floskell.exe: floskell.json: endOfInput, at line 21, column 0
CallStack (from HasCallStack):
error, called at src/Floskell\ConfigFile.hs:193:13 in floskell-0.10.5-7q3J7U12hgkCoOTj4Rcz7p:Floskell.ConfigFile
additional information needs to be get from floskell --help (like styles available)
missing examples how a style affects something
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.
The text was updated successfully, but these errors were encountered:
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 #-} (:<:) fA=>Bfwhere
and
instance {-# OVERLAPPABLE #-} (f:<:A) =>Bfwhere
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.
The text was updated successfully, but these errors were encountered: