git.iko.soy/rowtype-yoga/psfp
on 6dce5ac help sign in
25 lines 917 B history raw
1// Generated by purs version 0.13.6
2"use strict";
3var Control_Monad_Except_Trans = require("../Control.Monad.Except.Trans/index.js");
4var Data_Identity = require("../Data.Identity/index.js");
5var Data_Newtype = require("../Data.Newtype/index.js");
6var withExcept = Control_Monad_Except_Trans.withExceptT(Data_Identity.functorIdentity);
7var runExcept = (function () {
8 var $82 = Data_Newtype.unwrap(Data_Identity.newtypeIdentity);
9 return function ($83) {
10 return $82(Control_Monad_Except_Trans.runExceptT($83));
11 };
12})();
13var mapExcept = function (f) {
14 return Control_Monad_Except_Trans.mapExceptT((function () {
15 var $84 = Data_Newtype.unwrap(Data_Identity.newtypeIdentity);
16 return function ($85) {
17 return Data_Identity.Identity(f($84($85)));
18 };
19 })());
20};
21module.exports = {
22 runExcept: runExcept,
23 mapExcept: mapExcept,
24 withExcept: withExcept
25};