-
Notifications
You must be signed in to change notification settings - Fork 207
Mention hlint data file handling in readme #1573
Conversation
As end-user: "Okay, hie must locate hlint file and will search at that path as a last resort. Where it will search in the first place?" |
Uh, yeah, hlint has it own logic: afaik cwd (and parent directories) -> hlint_datadir(cabal/stack specific) env var -> $HOME (not sure about that one) -> executable current dir (the mentioned one) |
I still have considerable doubts about this. It does not conform to standard UNIX packaging. |
Jumm i've checked where my installation is searching for the file:
@Avi-D-coder each option has it own caveats and we decided finally to handle it like hlint itself, at least for now, without change any hie or hlint code. But i am open to talk about the file embed option, specially if it is done in hlint itself: maybe could we open an issue/pr in hlint to get feedback about? or we can also reopen #1143 before that |
@jneira |
Oh, didnt know, i've just tested to set the env var manually in my windows machine and it worked for me. |
I sent in a file-embed PR ndmitchell/hlint#824 |
a308e96
to
0bbe5b7
Compare
@Anrock i've tested the different locations where the file is searched and i've added them |
Closes #872