Skip to content

Can't find .hindent.yaml in the user's home directory on Windows #603

@deralbert

Description

@deralbert

I want to change indent-size to 4, so I created .hindent.yaml and added indent-size: 4 to this file. Since I don't want to copy this file to each project, I placed the file in my home directory which is C:\Users\Albert (getHomeDirectory from SystemDirectory returns also "C:\Users\Albert").

Now, if I do cat .\MyFile.hs | hindent, the setting in the .hindent.yaml is ignored. However, if the .hindent.yaml is placed near the MyFile.hs, the indent-size setting is found and applied just as it should.

Am I missing something? How can I pass the .hindent.yaml file to hindent from my home directory on Windows? Hindent version is 5.3.4.

Thank you for your answer in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions