Skip to content

Magic comments don't completely disable formatting #69

@brandon-leapyear

Description

@brandon-leapyear

I would expect adding {- FOURMOLU_DISABLE -} to the very top of the file and running fourmolu would not change anything in the file, but it does change this:

{- FOURMOLU_DISABLE -}

class Bar a where
  bar1 :: a  


  bar2 :: a

to this:

{- ORMOLU_DISABLE -}

class Bar a where
  bar1 :: a

  bar2 :: a

It collapses multiple newlines into one, changes FOURMOLU_DISABLE to ORMOLU_DISABLE, and (you can't see it here) removes trailing whitespace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions