1
1
mirror of https://github.com/google/ormolu.git synced 2024-11-30 14:46:39 +03:00
ormolu/data/examples/declaration/class/default-implementations-comments.hs
Utku Demir 9a1f5ebd87 Split large examples
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.
2019-08-25 12:35:31 +02:00

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