Created
March 8, 2014 01:02
-
-
Save joneshf/9423425 to your computer and use it in GitHub Desktop.
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
➜ 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