Skip to content

Commit a072ed2

Browse files
thomashoneymansharkdp
authored andcommitted
Update for PureScript 0.14
1 parent 5486314 commit a072ed2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

bower.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
"package.json"
2121
],
2222
"dependencies": {
23-
"purescript-maybe": "^4.0.0",
24-
"purescript-integers": "^4.0.0",
25-
"purescript-strings": "^4.0.0"
23+
"purescript-maybe": "^5.0.0",
24+
"purescript-integers": "^5.0.0",
25+
"purescript-strings": "^5.0.0"
2626
},
2727
"devDependencies": {
28-
"purescript-integers": "^4.0.0",
29-
"purescript-console": "^4.1.0",
30-
"purescript-assert": "^4.0.0",
31-
"purescript-quickcheck": "^6.0.0",
32-
"purescript-quickcheck-laws": "^5.0.0",
33-
"purescript-psci-support": "^4.0.0",
34-
"purescript-effect": "^2.0.0"
28+
"purescript-integers": "^5.0.0",
29+
"purescript-console": "^5.0.0",
30+
"purescript-assert": "^5.0.0",
31+
"purescript-quickcheck": "^7.0.0",
32+
"purescript-quickcheck-laws": "^6.0.0",
33+
"purescript-psci-support": "^5.0.0",
34+
"purescript-effect": "^3.0.0"
3535
}
3636
}

test/Main.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ module Test.Main where
33
import Prelude hiding (not)
44

55
import Data.Array (filter, range)
6+
import Data.Array.NonEmpty (cons')
67
import Data.Array.NonEmpty as NEA
78
import Data.BigInt (BigInt, abs, and, digitsInBase, even, fromBase, fromInt, fromNumber, fromString, not, odd, or, pow, prime, shl, shr, toBase, toBase', toNonEmptyString, toNumber, toString, xor, quot, rem, toInt)
89
import Data.Foldable (fold)
910
import Data.Int as Int
1011
import Data.Maybe (Maybe(..), fromMaybe)
11-
import Data.NonEmpty ((:|))
12+
import Data.Number (infinity, nan)
1213
import Data.String.NonEmpty (unsafeFromString)
1314
import Data.String.NonEmpty as NES
1415
import Effect (Effect)
1516
import Effect.Console (log)
16-
import Global (infinity, nan)
1717
import Partial.Unsafe (unsafePartial)
1818
import Test.Assert (assert)
1919
import Test.QuickCheck (quickCheck)
@@ -43,7 +43,7 @@ derive newtype instance euclideanRingTestBigInt :: EuclideanRing TestBigInt
4343
instance arbitraryBigInt :: Arbitrary TestBigInt where
4444
arbitrary = do
4545
n <- (fromMaybe zero <<< fromString) <$> digitString
46-
op <- elements (identity :| [negate])
46+
op <- elements (cons' identity [negate])
4747
pure (TestBigInt (op n))
4848
where digits :: Gen Int
4949
digits = chooseInt 0 9

0 commit comments

Comments
 (0)