Skip to content

stylish-haskell not picking up .stylish-haskell.yaml in parent directory #540

Closed
@typed-hole

Description

@typed-hole

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:

  1. create a new minimal haskell project (e.g. a plain cabal init)
  2. place a .stylish-haskell.yaml config in it that differs in any way from the standard
  3. set haskell.formattingProvider to stylish-haskell, for the workspace or user
  4. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions