-
GHC options passed via `--ghc-opt` have been ignored since #423.
I think [this code](https://github.com/tweag/ormolu/blob/647e32299f57a550b2d1340049142899118f52cb/src/Ormolu/Parser.hs#L52-L55) has …
-
Using unfamiliar extensions in source files gives an error which presents as a bug in GHC.
Example:
```haskell
{-# LANGUAGE WeirdExtension #-}
main :: IO ()
main = return ()
```
when run w…
-
I'm getting a parsing error with comment that have a `|` like `-- |` if they are between `module` and the first `import.
```
ormolu src/Lib.hs
Parsing of source code failed:
src/Lib.hs:4:1-6
…
-
The following:
```haskell
{-# LANGUAGE PatternSynonyms #-}
pattern a :< b = (a, b)
```
Leads to ormolu crash:
```
ormolu: panic! (the 'impossible' happened)
(GHC version 8.6.5 for x8…
-
Before Ormolu:
```
type CoerceLocalSig m m' =
forall r a.
LocalSig m r a ->
LocalSig m' r a
```
After Ormolu:
```
type CoerceLocalSig m m'
= forall r a. LocalSig m r a
->…
-
I've created a very basic emacs package to format code with `ormolu`: https://github.com/vyorkin/ormolu.el. Just letting you know in case you want to add a link to the README ;)
-
Original:
```haskell
foo = Foo { (+) = 3 }
bar = foo { (+) = 4 }
```
After Ormolu (with `--unsafe`)
```haskell
foo = Foo {+ = 3}
bar = foo {+ = 4}
```
Where the parentheses around …
-
Input:
```
-- The node can be in one of there states:
--
-- * Self-selection, collapsed.
-- * Self-selection, not collapsed.
-- * Child selection.
--
-- Note that a node with a child selecte…
-
Thanks for the cool tool! I'm currently evaluating use of `ormolu` at work on production codebases.
One barrier for adoption for us is that we tend to use liberal vertical whitespace for readabilit…
-
I've been experimenting with Ormolu, and came across some bad formatting for Aeson code. Consider the following parser:
```
instance FromJSON SomeType where
parseJSON = withObject "SomeType" $ \o…