1
1
mirror of https://github.com/google/ormolu.git synced 2024-12-01 00:32:04 +03:00
ormolu/data/examples/declaration/class/poly-kinded-classes-out.hs
mrkkrp 85d5f78b4b Change parens style and how separated lists of items are printed
Goals:

* Make the set of combinators clearer and smaller.
* Solve a number of issues, such as those about parse failures related to
  patterns.
* Solve the bug from #244.

The idea is very simple, we stop doing this

  ( foo
  , bar
  )

and start doing this

( foo,
  bar
  )

* We switch to trailing commas which solves the indentation issues for
  patterns automatically.
* The new general ‘sep’ combinator finally is clear enough, and all the old
  zoo of ‘velt’ and ‘velt'’ and ‘sepWith’, etc. which was confusing and
  overlapping goes away.
2019-08-04 13:32:06 +02:00

10 lines
107 B
Haskell

{-# LANGUAGE PolyKinds #-}
class Foo (a :: k)
class
Bar
( a -- Variable
:: * -- Star
)