vim-haskell-indent icon indicating copy to clipboard operation
vim-haskell-indent copied to clipboard

cases of case statement in parenthesis indents to opening paren

Open leg7 opened this issue 1 year ago • 5 comments

This happens in lambdas but I found that it happens more generally when the case statement is in parens. This doesn't happen when you only have an opening parenthesis but since I use a plugin that inserts parenthesis in pairs (typing ( in insert mode gives you (_) where _ is your cursor) it happens all the time.


-- Expected
case inp of
     1 -> True
     2 -> False

-- Actual
(case inp of 
1 -> True
2 -> False)

-- Expected
case inp of 1 -> True
            2 -> False

-- Actual
(case inp of 1 -> True
2 -> False)

leg7 avatar Nov 13 '24 09:11 leg7