Skip to content

Normalize parens #264

@mboes

Description

@mboes

A common deviation in styles is the following:

foo :: (Show a) => a -> IO ()
bar :: Show a => a -> IO ()

There are also contrived examples, where extra parens cannot possibly help readability:

baz :: ((Show a)) => a -> IO ()

Some might argue that constraints should always have parens around them, even singleton constraints, because it's more regular and less work when additional constraints have to be added to the set. Others prefer to always write the minimal number of lexemes. Point is, this is a common matter of style, that could be normalized away.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions