-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrated FFI to ES modules via 'lebab' * Removed '"use strict";' in FFI files * Update to CI to use 'unstable' purescript * Update pulp to 16.0.0-0 and psa to 0.8.2 * Update Bower dependencies to master * Update .eslintrc.json to ES6 * Remove forall proxy workaround * Added changelog entry * Update CHANGELOG.md Co-authored-by: Thomas Honeyman <[email protected]> Co-authored-by: Thomas Honeyman <[email protected]>
- Loading branch information
1 parent
091495d
commit 03abc1e
Showing
9 changed files
with
48 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,44 @@ | ||
"use strict"; | ||
|
||
exports.copyRecord = function(rec) { | ||
export function copyRecord(rec) { | ||
var copy = {}; | ||
for (var key in rec) { | ||
if ({}.hasOwnProperty.call(rec, key)) { | ||
copy[key] = rec[key]; | ||
} | ||
} | ||
return copy; | ||
}; | ||
} | ||
|
||
exports.unsafeInsert = function(l) { | ||
export function unsafeInsert(l) { | ||
return function(a) { | ||
return function(rec) { | ||
rec[l] = a; | ||
return rec; | ||
}; | ||
}; | ||
}; | ||
} | ||
|
||
exports.unsafeModify = function(l) { | ||
export function unsafeModify(l) { | ||
return function (f) { | ||
return function(rec) { | ||
rec[l] = f(rec[l]); | ||
return rec; | ||
}; | ||
}; | ||
}; | ||
} | ||
|
||
exports.unsafeDelete = function(l) { | ||
export function unsafeDelete(l) { | ||
return function(rec) { | ||
delete rec[l]; | ||
return rec; | ||
}; | ||
}; | ||
} | ||
|
||
exports.unsafeRename = function(l1) { | ||
export function unsafeRename(l1) { | ||
return function (l2) { | ||
return function (rec) { | ||
rec[l2] = rec[l1]; | ||
delete rec[l1]; | ||
return rec; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters