Skip to content

record-dot-preprocessor updates are lost sometimes #658

@neongreen

Description

@neongreen

Input:

{-# OPTIONS_GHC -fplugin=RecordDotPreprocessor #-}

foo = a{b = c
 }

fooplus f n = f{foo = f.bar + n}

Output:

{-# OPTIONS_GHC -fplugin=RecordDotPreprocessor #-}

foo =
  a { b = c
    }

fooplus f n = f{foo = f.bar + n}

The right result should be:

{-# OPTIONS_GHC -fplugin=RecordDotPreprocessor #-}

foo =
  a{b = c
   }

fooplus f n = f{foo = f.bar + n}

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