From 5e13ded27036f03de7b9ad14de01e2e61ade63da Mon Sep 17 00:00:00 2001 From: Hiroki Tokunaga Date: Sun, 22 Oct 2023 11:04:05 +0900 Subject: [PATCH] Fix the test HIndint currently can't handle CPPs well, and thus there is an empty line after the `where`, and lines containing only spaces inside it, but this PR is still useful as it prevents HIndint from panicking unnecessarily. --- TESTS.md | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/TESTS.md b/TESTS.md index d4c76e009..892b84c03 100644 --- a/TESTS.md +++ b/TESTS.md @@ -3413,33 +3413,21 @@ isDebug = False Conditionals inside a `where` and empty lines -```haskell given +```haskell foo = bar + baz where -#if 0 - bar = 1 - - baz = 1 -#else - bar = 2 - baz = 2 -#endif -``` - -```haskell expect -foo = bar + baz - where #if 0 bar = 1 + baz = 1 #else bar = 2 + baz = 2 #endif ``` - Macro definitions (`#define`) ```haskell