8000 [RFC] Single rule for `where` · Issue #45 · kowainik/org · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[RFC] Single rule for where #45
Open
@vrom911

Description

@vrom911

For now, we have a policy for where in the functions, and different rules for other places where where is used (e.g. type classes, instances, etc.).
I propose to apply the existing where rule to all wheres:

class Semigroup a 
  where
    (<>) :: a -> a -> a

We would have:
a. A single rule – easier to remember
b. Consistent style of where usage
c. Solved problem of huge constraints in the type classes definitions
d. Discourage for writing empty wheres in instances
e. ?

I guess it would have a positive effect. Let me know what you think! 👂🏼

502B

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0