1// Generated by purs version 0.15.16
2import * as $foreign from "./foreign.js";
3import * as Control_Applicative from "../Control.Applicative/index.js";
4import * as Control_Bind from "../Control.Bind/index.js";
5import * as Control_Monad_Except_Trans from "../Control.Monad.Except.Trans/index.js";
6import * as Data_Function from "../Data.Function/index.js";
7import * as Foreign from "../Foreign/index.js";
8var unsafeReadProp = function (dictMonad) {
9 var fail = Foreign.fail(dictMonad);
10 var pure = Control_Applicative.pure(Control_Monad_Except_Trans.applicativeExceptT(dictMonad));
12 return function (value) {
13 return $foreign.unsafeReadPropImpl(fail(new Foreign.TypeMismatch("object", Foreign.typeOf(value))), pure, k, value);
17var readProp = function (dictMonad) {
18 return unsafeReadProp(dictMonad);
20var readIndex = function (dictMonad) {
21 return unsafeReadProp(dictMonad);
23var ix = function (dict) {
26var index = function (dict) {
29var indexableExceptT = function (dictMonad) {
30 var bindFlipped = Control_Bind.bindFlipped(Control_Monad_Except_Trans.bindExceptT(dictMonad));
32 ix: function (dictIndex) {
33 var index1 = index(dictIndex);
36 return bindFlipped(Data_Function.flip(index1)(i))(f);
42var indexableForeign = function (dictMonad) {
44 ix: function (dictIndex) {
45 return index(dictIndex);
49var hasPropertyImpl = function (v) {
50 return function (v1) {
51 if (Foreign.isNull(v1)) {
54 if (Foreign.isUndefined(v1)) {
57 if (Foreign.typeOf(v1) === "object" || Foreign.typeOf(v1) === "function") {
58 return $foreign.unsafeHasProperty(v, v1);
63var hasProperty = function (dict) {
64 return dict.hasProperty;
66var hasOwnPropertyImpl = function (v) {
67 return function (v1) {
68 if (Foreign.isNull(v1)) {
71 if (Foreign.isUndefined(v1)) {
74 if (Foreign.typeOf(v1) === "object" || Foreign.typeOf(v1) === "function") {
75 return $foreign.unsafeHasOwnProperty(v, v1);
80var indexInt = function (dictMonad) {
82 index: Data_Function.flip(readIndex(dictMonad)),
83 hasProperty: hasPropertyImpl,
84 hasOwnProperty: hasOwnPropertyImpl,
85 errorAt: Foreign.ErrorAtIndex.create
88var indexString = function (dictMonad) {
90 index: Data_Function.flip(readProp(dictMonad)),
91 hasProperty: hasPropertyImpl,
92 hasOwnProperty: hasOwnPropertyImpl,
93 errorAt: Foreign.ErrorAtProperty.create
96var hasOwnProperty = function (dict) {
97 return dict.hasOwnProperty;
99var errorAt = function (dict) {
115//# sourceMappingURL=index.js.map
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list