tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
958 stars 83 forks source link

quasiquoter braces get misaligned #523

Closed mheinzel closed 4 years ago

mheinzel commented 4 years ago
foo = f $
  [quasiquoter|
    test
  |]

gets turned into

foo =
  f $
    [quasiquoter|
    test
  |]

which does not seem desirable to me, but not sure.

ormolu 0.0.3.1 master 55d8b7f8c482655ea575425e55352e650f304ea0, using ghc-lib-parser 8.8.2.20200205

mrkkrp commented 4 years ago

The indentation level of |] is determined by the quoted string. If we change the indentation level we'll change the quoted string—something we cannot do.