Skip to content

Instantly share code, notes, and snippets.

@joneshf
Created March 8, 2014 01:02
Show Gist options
  • Save joneshf/9423425 to your computer and use it in GitHub Desktop.
Save joneshf/9423425 to your computer and use it in GitHub Desktop.
➜ purescript git:(record-updates) ✗ ./.cabal-sandbox/bin/psc --no-prelude -s
module Foo where
f o = o {foo = 3}
(function (_ps) {
"use strict";
_ps.Foo = (function (module) {
var f = function (_1) {
return (function (_2) {
return (function () {
var _1 = {};
for (var _2 in _2) {
if (_2.hasOwnProperty(_2)) {
_1[_2] = _2[_2];
};
};
_1.foo = 3;
return _1;
})();
throw "Failed pattern match";
})(_1);
};
module.f = f;
return module;
})(_ps.Foo || {});
})((typeof module !== "undefined" && module.exports) ? module.exports : (typeof window !== "undefined") ? window.PS = window.PS || {} : (function () {
throw "PureScript doesn't know how to export modules in the current environment";
})());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment