Skip to content

Instantly share code, notes, and snippets.

@mlms13
Created January 2, 2020 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlms13/b9f8ff1a0532a94bb701c8402181f87f to your computer and use it in GitHub Desktop.
Save mlms13/b9f8ff1a0532a94bb701c8402181f87f to your computer and use it in GitHub Desktop.
JS representation of a module when the rei is all at the top level
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE
'use strict';
var ReludeRandom_Seed = require("./ReludeRandom_Seed.bs.js");
var ReludeRandom_Generator = require("./ReludeRandom_Generator.bs.js");
var ReludeRandom_RandomInt = require("./ReludeRandom_RandomInt.bs.js");
var ReludeRandom_RandomList = require("./ReludeRandom_RandomList.bs.js");
var Seed = {
fromInt: ReludeRandom_Seed.fromInt,
init: ReludeRandom_Seed.init
};
var Generator = {
Functor: ReludeRandom_Generator.Functor,
Apply: ReludeRandom_Generator.Apply,
Applicative: ReludeRandom_Generator.Applicative,
Monad: ReludeRandom_Generator.Monad,
run: ReludeRandom_Generator.run,
map: ReludeRandom_Generator.map,
apply: ReludeRandom_Generator.apply,
pure: ReludeRandom_Generator.pure,
flatMap: ReludeRandom_Generator.flatMap,
$$float: ReludeRandom_Generator.$$float,
$$int: ReludeRandom_Generator.$$int,
weighted: ReludeRandom_Generator.weighted,
flipMap: ReludeRandom_Generator.flipMap,
map2: ReludeRandom_Generator.map2,
map3: ReludeRandom_Generator.map3,
map4: ReludeRandom_Generator.map4,
map5: ReludeRandom_Generator.map5,
composeKleisli: ReludeRandom_Generator.composeKleisli,
flipComposeKleisli: ReludeRandom_Generator.flipComposeKleisli,
flatten: ReludeRandom_Generator.flatten
};
var RandomInt = {
make: ReludeRandom_RandomInt.make,
any: ReludeRandom_RandomInt.any,
anyPositive: ReludeRandom_RandomInt.anyPositive,
anyNegative: ReludeRandom_RandomInt.anyNegative,
greaterThan: ReludeRandom_RandomInt.greaterThan,
lessThan: ReludeRandom_RandomInt.lessThan,
fromZeroTo: ReludeRandom_RandomInt.fromZeroTo
};
var RandomList = {
make: ReludeRandom_RandomList.make,
makeRandomLength: ReludeRandom_RandomList.makeRandomLength
};
exports.Seed = Seed;
exports.Generator = Generator;
exports.RandomInt = RandomInt;
exports.RandomList = RandomList;
/* ReludeRandom_Seed Not a pure module */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment