Skip to content

Non-idempotent transformation of partly commented data definition #590

@mrkkrp

Description

@mrkkrp

This source code:

data Optimisation = PETransform | GeneralisedNatHack -- ^ partial eval and associated transforms
  deriving (Show, Eq, Generic)

gets first re-formatted as (1)

data Optimisation
  = PETransform | -- | partial eval and associated transforms
                  GeneralisedNatHack
  deriving (Show, Eq, Generic)

and then as (2)

data Optimisation
  = PETransform
  | -- | partial eval and associated transforms
    GeneralisedNatHack
  deriving (Show, Eq, Generic)

It should be printed as (2) right away.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingidempotenceIdempotence issues and solutions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions