Skip to content

Commit 40e8048

Browse files
committed
Fix deprecation warnings in tests
1 parent 8377cba commit 40e8048

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/Main.purs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module Test.Main where
22

3-
import Prelude (bind, (<=), (&&), (*), one, (/), mod, (+), (==), zero, ($),
4-
return, (/=), negate, Unit)
3+
import Prelude
54
import Control.Monad.Eff (Eff)
65
import Control.Monad.Eff.Console (CONSOLE, log)
76
import Control.Monad.Eff.Random (RANDOM)
@@ -16,15 +15,15 @@ newtype TestRational = TestRational Rational
1615
instance arbitraryTestRational :: Arbitrary TestRational where
1716
arbitrary = do
1817
a <- chooseInt (-99.0) 99.0
19-
b <- suchThat (chooseInt (-99.0) 99.0) (/= 0)
18+
b <- suchThat (chooseInt (-99.0) 99.0) (_ /= 0)
2019
return $ TestRational $ a % b
2120

2221
newtype TestRatNonZero = TestRatNonZero Rational
2322

2423
instance arbitraryTestRatNonZero :: Arbitrary TestRatNonZero where
2524
arbitrary = do
26-
a <- suchThat (chooseInt (-99.0) 99.0) (/= 0)
27-
b <- suchThat (chooseInt (-99.0) 99.0) (/= 0)
25+
a <- suchThat (chooseInt (-99.0) 99.0) (_ /= 0)
26+
b <- suchThat (chooseInt (-99.0) 99.0) (_ /= 0)
2827
return $ TestRatNonZero $ a % b
2928

3029
main :: forall eff. Eff (console :: CONSOLE, random :: RANDOM, err :: EXCEPTION | eff) Unit

0 commit comments

Comments
 (0)