1// Generated by purs version 0.15.16
2import * as Control_Category from "../Control.Category/index.js";
3import * as Data_Boolean from "../Data.Boolean/index.js";
4import * as Data_Eq from "../Data.Eq/index.js";
5import * as Data_Function from "../Data.Function/index.js";
6import * as Data_Functor from "../Data.Functor/index.js";
7import * as Data_Lens_Internal_Exchange from "../Data.Lens.Internal.Exchange/index.js";
8import * as Data_Lens_Types from "../Data.Lens.Types/index.js";
9import * as Data_Maybe from "../Data.Maybe/index.js";
10import * as Data_Newtype from "../Data.Newtype/index.js";
11import * as Data_Profunctor from "../Data.Profunctor/index.js";
12import * as Data_Tuple from "../Data.Tuple/index.js";
13import * as Safe_Coerce from "../Safe.Coerce/index.js";
14var identity = /* #__PURE__ */ Control_Category.identity(Control_Category.categoryFn);
15var unwrap = /* #__PURE__ */ Data_Newtype.unwrap();
16var coerce = /* #__PURE__ */ Safe_Coerce.coerce();
17var withIso = function (l) {
19 var v = l(new Data_Lens_Internal_Exchange.Exchange(identity, identity));
20 return f(v.value0)(v.value1);
23var under = function (l) {
24 return withIso(l)(function (sa) {
25 return function (bt) {
26 return function (ts) {
27 return function ($31) {
28 return sa(ts(bt($31)));
34var re = function (t) {
35 return unwrap(t(identity));
37var iso = function (f) {
39 return function (dictProfunctor) {
40 var dimap = Data_Profunctor.dimap(dictProfunctor);
41 return function (pab) {
42 return dimap(f)(g)(pab);
47var mapping = function (dictFunctor) {
48 var map = Data_Functor.map(dictFunctor);
49 return function (dictFunctor1) {
50 var map1 = Data_Functor.map(dictFunctor1);
52 return function (dictProfunctor) {
53 return withIso(l)(function (sa) {
54 return function (bt) {
55 return iso(map(sa))(map1(bt))(dictProfunctor);
62var non = function (dictEq) {
63 var eq = Data_Eq.eq(dictEq);
64 return function (def) {
65 return function (dictProfunctor) {
66 var g = function (a) {
68 return Data_Maybe.Nothing.value;
70 if (Data_Boolean.otherwise) {
71 return new Data_Maybe.Just(a);
73 throw new Error("Failed pattern match at Data.Lens.Iso (line 60, column 3 - line 62, column 25): " + [ a.constructor.name ]);
75 return iso(Data_Maybe.fromMaybe(def))(g)(dictProfunctor);
79var uncurried = function (dictProfunctor) {
80 return iso(Data_Tuple.uncurry)(Data_Tuple.curry)(dictProfunctor);
82var flipped = function (dictProfunctor) {
83 return iso(Data_Function.flip)(Data_Function.flip)(dictProfunctor);
85var dimapping = function (dictProfunctor) {
86 var dimap = Data_Profunctor.dimap(dictProfunctor);
87 return function (dictProfunctor1) {
88 var dimap1 = Data_Profunctor.dimap(dictProfunctor1);
91 return function (dictProfunctor2) {
92 return withIso(f)(function (sa) {
93 return function (bt) {
94 return withIso(g)(function (ssaa) {
95 return function (bbtt) {
96 return iso(dimap(sa)(ssaa))(dimap1(bt)(bbtt))(dictProfunctor2);
106var curried = function (dictProfunctor) {
107 return iso(Data_Tuple.curry)(Data_Tuple.uncurry)(dictProfunctor);
109var coerced = function () {
111 return function (dictProfunctor) {
112 return iso(coerce)(coerce)(dictProfunctor);
116var cloneIso = function (l) {
117 return function (dictProfunctor) {
118 return withIso(l)(function (x) {
119 return function (y) {
120 return function (p) {
121 return iso(x)(y)(dictProfunctor)(p);
127var auf = function (dictProfunctor) {
128 var rmap = Data_Profunctor.rmap(dictProfunctor);
129 return function (l) {
130 return withIso(l)(function (sa) {
131 return function (bt) {
132 return function (f) {
133 return function (g) {
134 return function (e) {
135 return bt(f(rmap(sa)(g))(e));
143var au = function (l) {
144 return withIso(l)(function (sa) {
145 return function (bt) {
146 return function (f) {
147 return function (e) {
173} from "../Data.Lens.Types/index.js";
174//# sourceMappingURL=index.js.map
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list