Closed
Description
When I set the formatting provider to stylish-haskell
, I expect it to make use of a relevant .stylish-haskell.yaml
configuration file (according to the rules specified by stylish-haskell
itself, c.f. https://github.com/jaspervdj/stylish-haskell#configuration), but I can't get it to pick one up, no matter where I put it.
The smallest minimal reproducible example I can come up with is:
- create a new minimal haskell project (e.g. a plain
cabal init
) - place a
.stylish-haskell.yaml
config in it that differs in any way from the standard - set
haskell.formattingProvider
tostylish-haskell
, for the workspace or user - trigger a format document in a source file
From my tests, it still uses the default stylish haskell settings. I've also attempted to place the .stylish-haskell.yaml
file in ~
, but it made no difference.
I have verified that my stylish haskell configuration file is not the issue, by invoking stylish-haskell
manually on a file in the command line, the the result is then the expected formatting.