dollar/lambda expression layouting #16

Closed
opened 2017-03-15 00:03:31 +01:00 by lspitzner · 2 comments
lspitzner commented 2017-03-15 00:03:31 +01:00 (Migrated from github.com)
foldrDesc f z = unSwitchQueue $ \q ->
  switch (Min.foldrDesc (f . unTaggedF) z q) (Min.foldrAsc (f . unTaggedF) z q)

currently is layouted as

foldrDesc f z =
  unSwitchQueue
    $ \q ->
        switch (Min.foldrDesc (f . unTaggedF) z q)
               (Min.foldrAsc (f . unTaggedF) z q)
~~~~.hs foldrDesc f z = unSwitchQueue $ \q -> switch (Min.foldrDesc (f . unTaggedF) z q) (Min.foldrAsc (f . unTaggedF) z q) ~~~~ currently is layouted as ~~~~.hs foldrDesc f z = unSwitchQueue $ \q -> switch (Min.foldrDesc (f . unTaggedF) z q) (Min.foldrAsc (f . unTaggedF) z q) ~~~~
int-index commented 2017-03-15 00:06:59 +01:00 (Migrated from github.com)

This can also happen with operators different than ($), no?

This can also happen with operators different than `($)`, no?
lspitzner commented 2017-03-15 00:11:32 +01:00 (Migrated from github.com)

correct. i think the cause is the lambda expression anyways, because

foo = abc $ def $ do
  foo
  bar

is done properly.

correct. i think the cause is the lambda expression anyways, because ~~~~.hs foo = abc $ def $ do foo bar ~~~~ is done properly.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#16
There is no content yet.