purs-pkg-deps
Version:
Query package dependencies in PureScript package-sets
63 lines (62 loc) • 2.71 kB
JavaScript
// Generated by purs version 0.14.3
;
var Data_Generic_Rep = require("../Data.Generic.Rep/index.js");
var Data_Show = require("../Data.Show/index.js");
var Data_Show_Generic = require("../Data.Show.Generic/index.js");
var Data_Symbol = require("../Data.Symbol/index.js");
var Dependencies = (function () {
function Dependencies(value0) {
this.value0 = value0;
};
Dependencies.create = function (value0) {
return new Dependencies(value0);
};
return Dependencies;
})();
var Paths = (function () {
function Paths(value0) {
this.value0 = value0;
};
Paths.create = function (value0) {
return new Paths(value0);
};
return Paths;
})();
var genericCommand = new Data_Generic_Rep.Generic(function (x) {
if (x instanceof Dependencies) {
return new Data_Generic_Rep.Inl(x.value0);
};
if (x instanceof Paths) {
return new Data_Generic_Rep.Inr(x.value0);
};
throw new Error("Failed pattern match at Arguments.Types (line 20, column 1 - line 20, column 51): " + [ x.constructor.name ]);
}, function (x) {
if (x instanceof Data_Generic_Rep.Inl) {
return new Dependencies(x.value0);
};
if (x instanceof Data_Generic_Rep.Inr) {
return new Paths(x.value0);
};
throw new Error("Failed pattern match at Arguments.Types (line 20, column 1 - line 20, column 51): " + [ x.constructor.name ]);
});
var showCommand = new Data_Show.Show(Data_Show_Generic.genericShow(genericCommand)(Data_Show_Generic.genericShowSum(Data_Show_Generic.genericShowConstructor(Data_Show_Generic.genericShowArgsArgument(Data_Show.showRecord()(Data_Show.showRecordFieldsCons(new Data_Symbol.IsSymbol(function () {
return "packageName";
}))(Data_Show.showRecordFieldsCons(new Data_Symbol.IsSymbol(function () {
return "reverse";
}))(Data_Show.showRecordFieldsCons(new Data_Symbol.IsSymbol(function () {
return "transitive";
}))(Data_Show.showRecordFieldsNil)(Data_Show.showBoolean))(Data_Show.showBoolean))(Data_Show.showString))))(new Data_Symbol.IsSymbol(function () {
return "Dependencies";
})))(Data_Show_Generic.genericShowConstructor(Data_Show_Generic.genericShowArgsArgument(Data_Show.showRecord()(Data_Show.showRecordFieldsCons(new Data_Symbol.IsSymbol(function () {
return "sourceName";
}))(Data_Show.showRecordFieldsCons(new Data_Symbol.IsSymbol(function () {
return "targetName";
}))(Data_Show.showRecordFieldsNil)(Data_Show.showString))(Data_Show.showString))))(new Data_Symbol.IsSymbol(function () {
return "Paths";
})))));
module.exports = {
Dependencies: Dependencies,
Paths: Paths,
genericCommand: genericCommand,
showCommand: showCommand
};