Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

case expressions #8

Closed
mekeor opened this Issue Aug 10, 2012 · 2 comments

Comments

Projects
None yet
2 participants

mekeor commented Aug 10, 2012

The style guide doesn't yet describe how to align case expressions.

Owner

tibbe commented Aug 11, 2012

Do you mean how you align the arrows?

mekeor commented Aug 11, 2012

I mean how deep to indent the cases of the case expression.

For instance:

 foobar = function $ case something of
     Just j -> foo
     Nothing -> bar

or

 foobar = function $ case something of
              Just j -> foo
              Nothing -> bar

or

 foobar = function $ case something of
                         Just j -> foo
                         Nothing -> bar

or

 foobar = function $ case something of
                          Just j -> foo
                          Nothing -> bar

@tibbe tibbe closed this in b96c29b Aug 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment