diff --git a/tests/haskell-indentation-tests.el b/tests/haskell-indentation-tests.el index b77ab3d06..89cc212be 100644 --- a/tests/haskell-indentation-tests.el +++ b/tests/haskell-indentation-tests.el @@ -320,3 +320,13 @@ Example of lines: "instance (Monad m) => C m a where" " c = undefined" " ^")) + +(ert-deftest haskell-indentation-check-instance-21a () + "layout versus comma in braces" + (haskell-indentation-check + "main :: IO ()" + "main = do" + "let foo = Foo {" + " bar = 0" + " , baz = 0" + " ^"))