File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
prettyprinter/test/Testsuite Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ {-# LANGUAGE CPP #-}
12{-# LANGUAGE OverloadedStrings #-}
23
34module StripTrailingSpace (testStripTrailingSpace ) where
@@ -13,6 +14,12 @@ import Data.Text.Prettyprint.Doc.Render.Util.StackMachine
1314import Test.Tasty
1415import Test.Tasty.HUnit
1516
17+ #if !(APPLICATIVE_MONAD)
18+ import Control.Applicative
19+ #endif
20+
21+
22+
1623box :: Text -> Text
1724box 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"
You can’t perform that action at this time.
0 commit comments