-
Notifications
You must be signed in to change notification settings - Fork 30
Provide hlint
executable.
#5
Comments
Is there a way to add hlint yourself, even if it's not added by this action? |
@LeifW You can always |
I think having hlint is not what most people expect from a setup-haskell action. Other people would be missing other libraries too then, such as quickcheck or hunit or something other essential. However, I think whats maybe a good idea is to have a list of packages to be installed with the github action?
|
I'm a bit confused - quickcheck and hunit are libraries, and as such if I used them in my project, I would add them as dependencies to my .cabal file. They're also not universally used. |
I'm not sure what you mean by this; installing the |
Oh man now I feel embarrassed. I mean that both hlint, quickcheck, etc. are common things in haskell, but they are addons. Therefore I think it might be good to opt in for hlint, or other utilities, with the standard action and writing it as Also I think that maybe someone will face the issue that he is (currently) running the action as mentioned above with immediately installing hlint afterwards, the change of making hlint pre-installed and linked might cause unexpected issues. I didn't mean to confuse or bother you 😃 |
@Twonki Ah, I get you. As far as things like In contrast, for PATH-accessible binaries like |
Out of curiosity, is there a list of several commonly used tools for haskell that:
The reasoning for 1 is that the rest of the action works on all three OSes, so ideally there aren't any settings that require one OS vs another. The reasoning for 2 is to avoid taking on a lot of technical complexity for tools that not many people would use. And the reasoning for 3 is to keep action setup time to a minimum. Off the top of my head, I can think of Would it make sense to special case I'm leaning towards setup for |
@jared-w Another tool that can be used as a validation step on CI is Haskell Static Analyser Stan. Stan works on all 3 major operating systems and provides binary releases, so it can be simply downloaded, if users want it. Specifying it as |
If you want to run HLint on such a repo, you can do:
That doesn't require an install, and automatically fetches an appropriate binary. |
This would be really nice to have by default.
The text was updated successfully, but these errors were encountered: