Skip to content

Support shallow indentation #366

Closed
Closed
@mkscrg

Description

@mkscrg

I find myself writing Haskell with mostly 4-space indents from the prior line. That applies in a lot of cases, e.g.

foobar :: Foo -> Bar
foobar foo = doSomething $
    withALong subexpression (thatDoesnt fitOn) thePrevious $ line foo

or

data Foo = Foo
    { fooBar :: Bar
    , fooBaz :: Baz
    , fooQux :: Qux
    } deriving (Eq, Show, Ord)

In fact, I find myself using 4-space indentation much more often than "align under start of this expression", which seems to be the haskell-mode approach.

Can I use haskell-mode with its indentation features disabled? 4-space indents are really easy to maintain by hand, and I find haskell-mode's other features very useful!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions