aelve / haskell-issues

An unofficial issue tracker for all things Haskell-related
18 stars 0 forks source link

Language extension: Parenthesize every indentation level #35

Open Gurkenglas opened 8 years ago

Gurkenglas commented 8 years ago

This would desugar

f = g
  h x
  i
    j k

to

f = g
  (h x)
  (i
    (j k))

and in particular it would desugar

foo = asd . evalState
  do dsa
     sda

to

foo = asd . evalState
  (do dsa
      sda)

(The solution is suboptimal because I either need an extra line only for the "do" or to start the do block on "do"'s line, but this is pretty neat in any case.)