Thank you for supporting MultiWayIf! By the way, it cannot handle indentation correctly if the first guard starts at the same line as if. Suppose, in the below code: the cursor is placed right after the first | (indicated by ^) below:
main :: IO ()
main = if | True -> undefined
-- ^ here
| otherwise -> undefined
Then, if I hit C-j, hi2 place the undefined as follows:
main :: IO ()
main = if | True ->
undefined
| otherwise -> undefined
This behaviour is wrong, and GHC claims parse error. undefined should be placed on the right to |.
Thank you for supporting MultiWayIf! By the way, it cannot handle indentation correctly if the first guard starts at the same line as
if
. Suppose, in the below code: the cursor is placed right after the first|
(indicated by^
) below:Then, if I hit
C-j
,hi2
place theundefined
as follows:This behaviour is wrong, and GHC claims parse error.
undefined
should be placed on the right to|
.