tfausak / flow

:droplet: Write more understandable Haskell.
https://hackage.haskell.org/package/flow
MIT License
198 stars 10 forks source link

Added a hlint file #17

Closed aleator closed 4 years ago

aleator commented 4 years ago

Added a hlint file for finding places where flow can be used.

It is currently biased to use left-to-right operators

aleator commented 4 years ago

You can run this by first installing hlint (stack install works well) and then doing hlint -h hlint-flow.yaml <file>. Would you like me to add few variations to the readme file?

I was impressed about the relude hlint file which was actually super helpful in learning relude and I think flow could be a similar case.

tfausak commented 4 years ago

Something in the README would be nice. That's what Relude does.

We could probably avoid all the directional hints. Maybe keep them in the file but comment them out?

aleator commented 4 years ago

I removed the directional hints for <| and < !. I think the <. can still have them. Atleast, nothing where it would conflict with convention immediatedly popped to my mind.