Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
deralbert opened this issue Oct 30, 2022 · 0 comments
Open

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

deralbert opened this issue Oct 30, 2022 · 0 comments

Comments

@deralbert
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant