This file contains hidden or 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
exports.create = function () { | |
var subs = []; | |
return { | |
event: function(sub) { | |
subs.push(sub); | |
}, | |
push: function(a) { | |
return function() { | |
for (var i = 0; i < subs.length; i++) { | |
subs[i](a); |
This file contains hidden or 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
import Control.Monad.Except.Trans | |
import Data.HTTP.Method | |
import Network.HTTP.Affjax | |
import Network.HTTP.ResponseHeader | |
import Network.HTTP.StatusCode | |
import Prelude | |
import Control.Plus | |
import Control.Monad.Aff.Console (log) | |
import Control.Monad.Eff.Class (liftEff) |
OlderNewer