ormolu icon indicating copy to clipboard operation
ormolu copied to clipboard

A formatter for Haskell source code

Results 79 ormolu issues
Sort by recently updated
recently updated
newest added

Soft blocked by https://github.com/input-output-hk/haskell.nix/issues/1595 for GHC 9.4 on CI. --- Overview: - Switch to `ghc-lib-parser-9.4.*`. This includes: - Support for the new syntactic features in GHC 9.4 ([changelog](https://downloads.haskell.org/ghc/9.4.1/docs/users_guide/9.4.1-notes.html#language)): - `\cases`...

**Describe the bug** ... Or, at least, I think it does. I've so far checked it on an M1 Pro, and received much the same output as [this](https://github.com/Homebrew/homebrew-core/pull/101355#issuecomment-1126824006). Specifically, everything...

**Describe the bug** `let` is allowed to have no bindings, but this causes any comments later in the file to be moved into the let **To Reproduce** ```hs foo =...

bug
comments

Mixing backtick-ed functions with ordinary infix operators often looks worse than it used to. This is presumably a victim of the fixity overhaul. Ormolu 0.4: ```hs def1 = (,,) gvar...

style

It would be nice if fourmolu could take folders as well as files as an input and would process all haskell files in that folder (recursively) so instead of ```...

feature-request

**Describe the bug** ```hs module Foo ( {- comment -} ) where ``` gets reformatted to ```hs module Foo ( ) where {- comment -} ``` Related: #901 **To Reproduce**...

style
comments

Consider the following snippet ``` type SgpF' e = ... type MonF' e = ... type GrpF' e = ... type RigF' e f = ... type RngF' e f...

style

`StandaloneDeriving` requires separate lines for each derived instance: ```haskell data Foo deriving stock instance Generic Foo deriving anyclass instance FromJSON Foo deriving anyclass instance ToJSON Foo deriving anyclass instance FromDhall...

style

**Describe the bug** ```haskell pattern A :: Int -> Int pattern A a = a {-# COMPLETE A #-} ``` gets formatted into ```haskell pattern A :: Int -> Int...

style