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

Avoid capitalisms #1548

Open
cgohla opened this issue Nov 26, 2023 · 2 comments
Open

Avoid capitalisms #1548

cgohla opened this issue Nov 26, 2023 · 2 comments

Comments

@cgohla
Copy link

cgohla commented Nov 26, 2023

I would like to use hlint to output warnings for definitions of identifiers (type or value) that contain capitalisms, e.g., getSMSOTP. This is almost what the camelCase rule does.

The rule formal rule would be this: no two consecutive capitals on the LHS of type, data, newtype, =, <-.

What is the recommended way to implement this?

@ndmitchell
Copy link
Owner

I think before adding it to HLint it would be best to try and get this agreed by the Haskell community. Does the base library follow this rule? Do common style guides recommend it?

@bgohla
Copy link

bgohla commented Feb 9, 2024

All I can say to defend this idea currently is that this is the style we want to enforce at my job, and I thought hlint would be the best way to do that.

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

3 participants