Closed
Description
Below, X
marks where the caret ends up when i press RET and where I would like different behavior (marked by Y
). These examples are only for cases where the position of a new comma is obvious by looking on the previous line.
For all of these I think the most flexible solution would be to indent to the position of the previous comma since that would allow me to insert a comma and a space for a new item, or to close the listing
Pragmas:
{-# LANGUAGE
Arrows
, FlexibleContexts<RET>
X
=>
{-# LANGUAGE
Arrows
, FlexibleContexts<RET>
Y
Exports:
module Foo
( foo
, bar<RET>
X
=>
module Foo
( foo
, bar<RET>
Y
Expressions:
bar = [ baz
, bax<RET>
X
=>
bar = [ baz
, bax<RET>
Y
Deriving:
data Foo = Foo
deriving
( Bar
, Baz<RET>
X
=>
data Foo = Foo
deriving
( Bar
, Baz<RET>
Y