Skip to content

Commit 5bdb186

Browse files
committed
Housekeeping
1 parent 77008a2 commit 5bdb186

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

prettyprinter/test/Testsuite/StripTrailingSpace.hs

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

34
module StripTrailingSpace (testStripTrailingSpace) where
@@ -13,6 +14,12 @@ import Data.Text.Prettyprint.Doc.Render.Util.StackMachine
1314
import Test.Tasty
1415
import Test.Tasty.HUnit
1516

17+
#if !(APPLICATIVE_MONAD)
18+
import Control.Applicative
19+
#endif
20+
21+
22+
1623
box :: Text -> Text
1724
box singleLine = unlines'
1825
[ "┌─" <> T.replicate (T.length singleLine) "" <> "─┐"
@@ -40,7 +47,7 @@ testStripTrailingSpace = testGroup "Stripping trailing space"
4047
, testCase "Multiple spaces inside"
4148
(testStripping ("Multiple spaces" <> " " <> "inside"))
4249
, testCase "Whitespace inside text"
43-
(testStripping ("Whitespace inside text "))
50+
(testStripping "Whitespace inside text ")
4451
, testCase "Indented blank line"
4552
(testStripping (nest 4 (vcat ["Indented blank line", "", "<end>"])))
4653
, testCase "Multiple indented blank lines"

0 commit comments

Comments
 (0)