Skip to content

Record updates with RDP are not idempotent #701

@neongreen

Description

@neongreen
{-# OPTIONS_GHC -fplugin=RecordDotPreprocessor #-}

a =
  def{ N.k = g
     }

Invoking ormolu-0.1.4.1 results in:

{-# OPTIONS_GHC -fplugin=RecordDotPreprocessor #-}

a =
  def
    { N.k = g
    }

Invoking ormolu-0.1.4.1 again results in:

{-# OPTIONS_GHC -fplugin=RecordDotPreprocessor #-}

a =
  def{N.k = g
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions