File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,7 @@ macro quotes them for you."
145145function = Record
146146 { field = 123 }"
147147 ((1 0 ) 0 )
148- ((2 0 ) 0 11 )
149- ((3 0 ) 0 7 ))
148+ ((2 0 ) 0 11 ))
150149
151150(hindent-test " 2 Handle underscore in identifiers" "
152151function = do
@@ -719,4 +718,32 @@ a = ( 1
719718 ((2 0 ) 4 )
720719 ((2 2 ) 6 ))
721720
721+ (hindent-test " 41 open do inside a list" "
722+ x = asum [ withX $ do
723+ return ()
724+ ]
725+ "
726+ ((2 0 ) 13 ))
727+
728+ (hindent-test " 42 open do inside a list second element" "
729+ x = asum [ mzero
730+ , withX $ do
731+ return ()
732+ ]
733+ "
734+ ((3 0 ) 13 ))
735+
736+ (hindent-test " 43 open do inside a list second element, reset alignment" "
737+ x = asum [ mzero
738+ , withX $ do
739+ return ()
740+ ]
741+ "
742+ ((3 0 ) 17 ))
743+
744+ (hindent-test " 44 expression continues, reset alignment" "
745+ function = abc
746+ def
747+ xyz"
748+ ((3 0 ) 0 7 ))
722749; ;; haskell-indentation-tests.el ends here
You can’t perform that action at this time.
0 commit comments