Skip to content

Commit fef5f6a

Browse files
removed block arguments
1 parent b4e5c6c commit fef5f6a

File tree

1 file changed

+3
-4
lines changed
  • tests/builder/Data/ByteString/Builder

1 file changed

+3
-4
lines changed

tests/builder/Data/ByteString/Builder/Tests.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE BlockArguments #-}
21
{-# LANGUAGE ScopedTypeVariables #-}
32
{-# OPTIONS_GHC -fno-warn-orphans #-}
43

@@ -789,7 +788,7 @@ testsFloating = testGroup "RealFloat"
789788
, ( 4.294967295 , "4.294967295e0" )
790789
]
791790
, testGroup "d2sStandard"
792-
[ testCase "specific" do
791+
[ testCase "specific" $ do
793792
singleMatches (formatDouble (standard 2)) (flip (showFFloat (Just 2)) []) ( 12.3 , "12.30" )
794793
singleMatches (formatDouble (standard 2)) (flip (showFFloat (Just 2)) []) ( 12.345 , "12.34" )
795794
singleMatches (formatDouble (standard 2)) (flip (showFFloat (Just 2)) []) ( 12.3451 , "12.35" )
@@ -805,7 +804,7 @@ testsFloating = testGroup "RealFloat"
805804
testCase "specific zero" $
806805
singleMatches (formatDouble (standard 3)) (flip (showFFloat (Just 3)) []) ( 0.0 , "0.000" )
807806
-- NonZero should be removed when zero case fixed
808-
, testProperty "standard N" \(NonNegative p, NonZero (d :: Double)) -> (LC.unpack . toLazyByteString)
807+
, testProperty "standard N" $ \(NonNegative p, NonZero (d :: Double)) -> (LC.unpack . toLazyByteString)
809808
(formatDouble (standard p) d) === showFFloat (Just p) d ""
810809
]
811810
, testMatches "d2sLooksLikePowerOf5" doubleDec show
@@ -983,7 +982,7 @@ testsFloating = testGroup "RealFloat"
983982
]
984983
where
985984
testExpected :: TestName -> (a -> Builder) -> [(a, String)] -> TestTree
986-
testExpected name dec = testCase name . traverse_ \(x, ref) -> LC.unpack (toLazyByteString (dec x)) @?= ref
985+
testExpected name dec = testCase name . traverse_ (\(x, ref) -> LC.unpack (toLazyByteString (dec x)) @?= ref)
987986

988987
singleMatches :: (a -> Builder) -> (a -> String) -> (a, String) -> Assertion
989988
singleMatches dec refdec (x, ref) = do

0 commit comments

Comments
 (0)