-
```
instance A.FromJSON Service where
parseJSON =
A.genericParseJSON $
A.defaultOptions
{ A.fieldLabelModifier = A.camelTo2 '_' . drop 2
}
```
gets formatted to
…
-
Hi!
Would it be possible to enhance ormolu by letting it check multiple files at once?
## Why?
We have a project with 275 files. To check that they are formatted we must run:
```
ormolu -…
-
Input:
```haskell
{-# LANGUAGE TemplateHaskell #-}
type Foo = $(bar [t|Int|])
```
Output:
```haskell
ormolu: panic! (the 'impossible' happened)
(GHC version 8.6.4 for x86_64-apple-da…
-
Here is an example extracted (simplified) from `capability` (not even `capability` itself, but from one of the examples):
```haskell
foo = catch
do
bar
baz
\e -> putStrLn $ "Too …
-
It happens that the lib libHSghc-prim-0.5.3.so cannot be found.In fact, the lib is in /lib/ghc-8.8.3/ghc-prim-0.5.3/libHSghc-prim-0.5.3-ghc8.8.3.so, and simply creating links or running ldconfig does …
-
This was mentioned in #216, but it is a separate issue.
>The problem is that a list of language extensions is not always a list of commutative elements, however it often is a list of commutative el…
-
This has been distilled from wire-server.
```haskell
update =
do
foobar
`catch` \case
a -> a
```
Ormolu produces (in unsafe mode):
```haskell
update =
do
f…
-
Input:
```haskell
{-# LANGUAGE MagicHash #-}
main = new "p"#
```
Output:
```
ormolu: Data.ByteString.ByteString.toConstr
CallStack (from HasCallStack):
error, called at libraries/byte…
-
Original code:
```haskell
$(foo 'bar_baz)
```
After Ormolu:
```haskell
$(foo '(bar_baz))
```
which is not syntactically correct.
Relevant: #239
-
Discovered while fixing #260. Here is an example derived from existing tests:
```haskell
foo =
bar
++
{- some comment -}
case foo of
a -> a
```
this becomes after first …