Skip to content

Commit abd0c49

Browse files
committed
Housekeeping
1 parent 77008a2 commit abd0c49

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

prettyprinter/test/Testsuite/StripTrailingSpace.hs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE OverloadedStrings #-}
23

4+
#include "version-compatibility-macros.h"
5+
36
module StripTrailingSpace (testStripTrailingSpace) where
47

58

@@ -13,6 +16,12 @@ import Data.Text.Prettyprint.Doc.Render.Util.StackMachine
1316
import Test.Tasty
1417
import Test.Tasty.HUnit
1518

19+
#if !(APPLICATIVE_MONAD)
20+
import Control.Applicative
21+
#endif
22+
23+
24+
1625
box :: Text -> Text
1726
box singleLine = unlines'
1827
[ "┌─" <> T.replicate (T.length singleLine) "" <> "─┐"
@@ -40,7 +49,7 @@ testStripTrailingSpace = testGroup "Stripping trailing space"
4049
, testCase "Multiple spaces inside"
4150
(testStripping ("Multiple spaces" <> " " <> "inside"))
4251
, testCase "Whitespace inside text"
43-
(testStripping ("Whitespace inside text "))
52+
(testStripping "Whitespace inside text ")
4453
, testCase "Indented blank line"
4554
(testStripping (nest 4 (vcat ["Indented blank line", "", "<end>"])))
4655
, testCase "Multiple indented blank lines"

0 commit comments

Comments
 (0)