mirror of
https://github.com/google/ormolu.git
synced 2024-11-30 14:46:39 +03:00
9a1f5ebd87
There has been a lot of good intense work lately and as a result of that some examples have grown considerably. The problem is that we do not show diffs when something is not formatted as expected, we show entire "expected/got" files. It works well when files are small, but not so well where they are huge (some of our examples are well beyond 100 lines). It can be hard to understand where the problem is. This commit split long examples into smaller ones to make it easier to see what went wrong when a test fails.
21 lines
336 B
Haskell
21 lines
336 B
Haskell
-- | Baz
|
|
class Baz a where
|
|
foobar :: a -> a
|
|
foobar a =
|
|
barbaz (bazbar a)
|
|
-- | Bar baz
|
|
barbaz ::
|
|
a -> a
|
|
-- | Baz bar
|
|
bazbar ::
|
|
a ->
|
|
a
|
|
-- First comment
|
|
barbaz a
|
|
= bazbar -- Middle comment
|
|
a
|
|
-- Last comment
|
|
bazbar a
|
|
= barbaz
|
|
a
|