E.map(foo => E.tryPromise({
try: () =>
fetch('/test', { method: 'POST', body: JSON.stringify({ foo, ...this.settings }) })
.then((_) => _.json()),
catch: (e) => { console.log(1, this); return new Error() }
})),
E.map(foo => E.tryPromise({
try: () =>
fetch('/test', { method: 'POST', body: JSON.stringify({ foo, ...this.settings }) })
.then((_) => _.json()),
catch: (e) => { console.log(1, this); return new Error() }
})),