From 080ecd60adabde451b04663591530ddf27f54b5d Mon Sep 17 00:00:00 2001 From: Gracjan Polak Date: Thu, 11 Jun 2015 15:45:36 +0200 Subject: [PATCH] Add test layout versus comma in braces --- tests/haskell-indentation-tests.el | 10 ++++++++++ 1 file changed, 10 insertions(+) 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" + " ^"))