Skip to content

Commit

Permalink
Update to Bastet
Browse files Browse the repository at this point in the history
  • Loading branch information
mlms13 committed Apr 1, 2020
1 parent a4781bd commit 5b234f1
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 24 deletions.
2 changes: 1 addition & 1 deletion bsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"suffix": ".bs.js",
"bs-dependencies": [
"bs-abstract",
"bs-bastet",
"relude"
],
"bs-dev-dependencies": [
Expand Down
38 changes: 27 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"author": "",
"license": "MIT",
"peerDependencies": {
"bs-abstract": "^0.18.0",
"bs-platform": "^7.0.1",
"relude": "^0.47.0"
"bs-bastet": "^1.2.5",
"bs-platform": "^7.2.2",
"relude": "^0.59.0"
},
"devDependencies": {
"@glennsl/bs-jest": "^0.4.9",
"bs-abstract": "^0.18.0",
"bs-platform": "^7.0.1",
"relude": "^0.47.0"
"bs-bastet": "^1.2.5",
"bs-platform": "^7.2.2",
"relude": "^0.59.0"
},
"jest": {
"coveragePathIgnorePatterns": [
Expand Down
8 changes: 4 additions & 4 deletions src/ReludeRandom.rei
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ module Seed: {
module Generator: {
type t('a);

module Functor: BsAbstract.Interface.FUNCTOR with type t('a) = t('a);
module Functor: BsBastet.Interface.FUNCTOR with type t('a) = t('a);

module Apply: BsAbstract.Interface.APPLY with type t('a) = t('a);
module Apply: BsBastet.Interface.APPLY with type t('a) = t('a);

module Applicative:
BsAbstract.Interface.APPLICATIVE with type t('a) = t('a);
BsBastet.Interface.APPLICATIVE with type t('a) = t('a);

module Monad: BsAbstract.Interface.MONAD with type t('a) = t('a);
module Monad: BsBastet.Interface.MONAD with type t('a) = t('a);
/**
* Run a generator with the provided seed, getting back a tuple of the random
* value and the next seed.
Expand Down
4 changes: 2 additions & 2 deletions test/util/TestUtil.re
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Weekday = {
};

let collectCounts =
(type a, ord: (module BsAbstract.Interface.ORD with type t = a), xs) => {
(type a, ord: (module BsBastet.Interface.ORD with type t = a), xs) => {
module Ord = (val ord);
module M = Map.WithOrd(Ord);
List.foldLeft(
Expand All @@ -59,7 +59,7 @@ let collectCounts =
let testDistribution =
(
type a,
ord: (module BsAbstract.Interface.ORD with type t = a),
ord: (module BsBastet.Interface.ORD with type t = a),
~samples=10000,
gen: Generator.t(a),
seed,
Expand Down

0 comments on commit 5b234f1

Please sign in to comment.