For some reason, purescript-indentation.el instead of implementing just a single indentation function has implemented two of them: purescript-newline-and-indent and purescript-indentation-indent-line (aka indent-line-function). As result, whenever a minor-mode binding calls indent-line-function, this results in indentation being zero.
For example, if you call evil-open-below after type declaration, it will get indented even though it shouldn't.
The two functions should be unified, I think.
Steps to reproduce
-
Open purescript-mode buffer with text:
-
Start new line after the text and evaluate (funcall indent-line-function)
Expected
No indentation
Actual
Indentation gets added
For some reason,
purescript-indentation.elinstead of implementing just a single indentation function has implemented two of them:purescript-newline-and-indentandpurescript-indentation-indent-line(akaindent-line-function). As result, whenever a minor-mode binding callsindent-line-function, this results in indentation being zero.For example, if you call
evil-open-belowaftertypedeclaration, it will get indented even though it shouldn't.The two functions should be unified, I think.
Steps to reproduce
Open purescript-mode buffer with text:
Start new line after the text and evaluate
(funcall indent-line-function)Expected
No indentation
Actual
Indentation gets added