@fncts/base 0.0.13 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/_cjs/collection/compat/Array/api.cjs +10 -10
  2. package/_cjs/collection/compat/Array/derivations.cjs +96 -0
  3. package/_cjs/collection/compat/Array/derivations.cjs.map +1 -0
  4. package/_cjs/collection/compat/Array.cjs +13 -0
  5. package/_cjs/collection/compat/Array.cjs.map +1 -1
  6. package/_cjs/collection/compat.cjs +6 -0
  7. package/_cjs/collection/compat.cjs.map +1 -0
  8. package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
  9. package/_cjs/collection/immutable/Conc/derivations.cjs +45 -0
  10. package/_cjs/collection/immutable/Conc/derivations.cjs.map +1 -0
  11. package/_cjs/collection/immutable/Conc.cjs +13 -0
  12. package/_cjs/collection/immutable/Conc.cjs.map +1 -1
  13. package/_cjs/collection/immutable/ImmutableArray/api.cjs +6 -6
  14. package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +2 -2
  15. package/_cjs/collection/immutable/ImmutableArray/definition.cjs +9 -4
  16. package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +1 -1
  17. package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +41 -0
  18. package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +1 -0
  19. package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
  20. package/_cjs/collection/immutable/ImmutableArray.cjs +13 -0
  21. package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
  22. package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +2 -2
  23. package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +62 -0
  24. package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +1 -0
  25. package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs +13 -0
  26. package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +1 -1
  27. package/_cjs/collection/immutable/List/definition.cjs +2 -2
  28. package/_cjs/collection/immutable/Vector/internal.cjs +1 -1
  29. package/_cjs/collection/immutable.cjs +6 -0
  30. package/_cjs/collection/immutable.cjs.map +1 -0
  31. package/_cjs/collection/mutable/HashMap.cjs +4 -0
  32. package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
  33. package/_cjs/collection/mutable.cjs +6 -0
  34. package/_cjs/collection/mutable.cjs.map +1 -0
  35. package/_cjs/collection/weak.cjs +6 -0
  36. package/_cjs/collection/weak.cjs.map +1 -0
  37. package/_cjs/collection.cjs +6 -0
  38. package/_cjs/collection.cjs.map +1 -0
  39. package/_cjs/control/Eval/definition.cjs +1 -1
  40. package/_cjs/control/Eval/definition.cjs.map +1 -1
  41. package/_cjs/control/Z/api.cjs +9 -9
  42. package/_cjs/control/Z/api.cjs.map +1 -1
  43. package/_cjs/control/Z/definition.cjs +0 -1
  44. package/_cjs/control/Z/definition.cjs.map +1 -1
  45. package/_cjs/control/Z/runtime.cjs +2 -0
  46. package/_cjs/control/Z/runtime.cjs.map +1 -1
  47. package/_cjs/control.cjs +6 -0
  48. package/_cjs/control.cjs.map +1 -0
  49. package/_cjs/data/Cause/api/isEmpty.cjs +2 -0
  50. package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
  51. package/_cjs/data/Cause/api/linearize.cjs +2 -0
  52. package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
  53. package/_cjs/data/Cause/api.cjs +2 -0
  54. package/_cjs/data/Cause/api.cjs.map +1 -1
  55. package/_cjs/data/Const/instances.cjs +4 -3
  56. package/_cjs/data/Const/instances.cjs.map +1 -1
  57. package/_cjs/data/DecodeError/definition.cjs +13 -1
  58. package/_cjs/data/DecodeError/definition.cjs.map +1 -1
  59. package/_cjs/data/DecodeError/instances.cjs +6 -0
  60. package/_cjs/data/DecodeError/instances.cjs.map +1 -0
  61. package/_cjs/data/DecodeError.cjs +13 -0
  62. package/_cjs/data/DecodeError.cjs.map +1 -1
  63. package/_cjs/data/Either/api/alignWith.cjs +2 -0
  64. package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
  65. package/_cjs/data/Either/definition.cjs +1 -1
  66. package/_cjs/data/Either/definition.cjs.map +1 -1
  67. package/_cjs/data/Environment/api.cjs +15 -25
  68. package/_cjs/data/Environment/api.cjs.map +1 -1
  69. package/_cjs/data/Environment/definition.cjs +1 -2
  70. package/_cjs/data/Environment/definition.cjs.map +1 -1
  71. package/_cjs/data/Intervals.cjs +2 -2
  72. package/_cjs/data/Intervals.cjs.map +1 -1
  73. package/_cjs/data/Patch/api.cjs +5 -3
  74. package/_cjs/data/Patch/api.cjs.map +1 -1
  75. package/_cjs/data/Struct/api.cjs +2 -0
  76. package/_cjs/data/Struct/api.cjs.map +1 -1
  77. package/_cjs/data/Tag/constructors.cjs +2 -2
  78. package/_cjs/data/Tag/constructors.cjs.map +1 -1
  79. package/_cjs/data/Tag/definition.cjs +3 -3
  80. package/_cjs/data/Tag/definition.cjs.map +1 -1
  81. package/_cjs/data/These/definition.cjs +1 -1
  82. package/_cjs/data/These/definition.cjs.map +1 -1
  83. package/_cjs/data/string/api.cjs +1 -1
  84. package/_cjs/data.cjs +6 -0
  85. package/_cjs/data.cjs.map +1 -0
  86. package/_cjs/global.cjs +6 -0
  87. package/_cjs/global.cjs.map +1 -0
  88. package/_cjs/index.cjs +6 -0
  89. package/_cjs/index.cjs.map +1 -0
  90. package/_cjs/json.cjs +6 -0
  91. package/_cjs/json.cjs.map +1 -0
  92. package/_cjs/optics/At/definition.cjs +2 -0
  93. package/_cjs/optics/At/definition.cjs.map +1 -1
  94. package/_cjs/optics/Iso/definition.cjs +4 -0
  95. package/_cjs/optics/Iso/definition.cjs.map +1 -1
  96. package/_cjs/optics/Lens/definition.cjs +4 -0
  97. package/_cjs/optics/Lens/definition.cjs.map +1 -1
  98. package/_cjs/optics/Optional/definition.cjs +2 -0
  99. package/_cjs/optics/Optional/definition.cjs.map +1 -1
  100. package/_cjs/optics/Prism/definition.cjs +2 -0
  101. package/_cjs/optics/Prism/definition.cjs.map +1 -1
  102. package/_cjs/optics/Traversal/definition.cjs +4 -0
  103. package/_cjs/optics/Traversal/definition.cjs.map +1 -1
  104. package/_cjs/optics.cjs +6 -0
  105. package/_cjs/optics.cjs.map +1 -0
  106. package/_cjs/typeclass/HashEq.cjs +2 -0
  107. package/_cjs/typeclass/HashEq.cjs.map +1 -1
  108. package/_cjs/typeclass/Monoid.cjs +2 -0
  109. package/_cjs/typeclass/Monoid.cjs.map +1 -1
  110. package/_cjs/typeclass/Ord/definition.cjs +2 -0
  111. package/_cjs/typeclass/Ord/definition.cjs.map +1 -1
  112. package/_cjs/typeclass/Ord/instances.cjs +4 -3
  113. package/_cjs/typeclass/Ord/instances.cjs.map +1 -1
  114. package/_cjs/typeclass/Showable/show.cjs.map +1 -1
  115. package/_cjs/util.cjs +6 -0
  116. package/_cjs/util.cjs.map +1 -0
  117. package/_mjs/collection/compat/Array/api.mjs +10 -10
  118. package/_mjs/collection/compat/Array/derivations.mjs +70 -0
  119. package/_mjs/collection/compat/Array/derivations.mjs.map +1 -0
  120. package/_mjs/collection/compat/Array.mjs +1 -0
  121. package/_mjs/collection/compat/Array.mjs.map +1 -1
  122. package/_mjs/collection/compat.mjs +2 -0
  123. package/_mjs/collection/compat.mjs.map +1 -0
  124. package/_mjs/collection/immutable/Conc/api.mjs +1 -0
  125. package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
  126. package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
  127. package/_mjs/collection/immutable/Conc/derivations.mjs +27 -0
  128. package/_mjs/collection/immutable/Conc/derivations.mjs.map +1 -0
  129. package/_mjs/collection/immutable/Conc.mjs +2 -1
  130. package/_mjs/collection/immutable/Conc.mjs.map +1 -1
  131. package/_mjs/collection/immutable/HashSet/api.mjs +1 -0
  132. package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
  133. package/_mjs/collection/immutable/ImmutableArray/api.mjs +6 -6
  134. package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +2 -2
  135. package/_mjs/collection/immutable/ImmutableArray/definition.mjs +7 -2
  136. package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +1 -1
  137. package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +25 -0
  138. package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +1 -0
  139. package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
  140. package/_mjs/collection/immutable/ImmutableArray.mjs +1 -0
  141. package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
  142. package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +1 -0
  143. package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
  144. package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs +2 -2
  145. package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +39 -0
  146. package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +1 -0
  147. package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +1 -0
  148. package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +1 -1
  149. package/_mjs/collection/immutable/List/definition.mjs +2 -2
  150. package/_mjs/collection/immutable/SortedMap/api.mjs +1 -0
  151. package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
  152. package/_mjs/collection/immutable/Vector/internal.mjs +1 -1
  153. package/_mjs/collection/immutable.mjs +2 -0
  154. package/_mjs/collection/immutable.mjs.map +1 -0
  155. package/_mjs/collection/mutable/HashMap.mjs +4 -0
  156. package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
  157. package/_mjs/collection/mutable.mjs +2 -0
  158. package/_mjs/collection/mutable.mjs.map +1 -0
  159. package/_mjs/collection/weak.mjs +2 -0
  160. package/_mjs/collection/weak.mjs.map +1 -0
  161. package/_mjs/collection.mjs +2 -0
  162. package/_mjs/collection.mjs.map +1 -0
  163. package/_mjs/control/Eval/definition.mjs +1 -1
  164. package/_mjs/control/Eval/definition.mjs.map +1 -1
  165. package/_mjs/control/Eval/run.mjs +1 -0
  166. package/_mjs/control/Eval/run.mjs.map +1 -1
  167. package/_mjs/control/Z/api.mjs +9 -9
  168. package/_mjs/control/Z/api.mjs.map +1 -1
  169. package/_mjs/control/Z/definition.mjs +0 -1
  170. package/_mjs/control/Z/definition.mjs.map +1 -1
  171. package/_mjs/control/Z/runtime.mjs +1 -0
  172. package/_mjs/control/Z/runtime.mjs.map +1 -1
  173. package/_mjs/control.mjs +2 -0
  174. package/_mjs/control.mjs.map +1 -0
  175. package/_mjs/data/Branded/derivations.mjs +1 -0
  176. package/_mjs/data/Branded/derivations.mjs.map +1 -1
  177. package/_mjs/data/Cause/api/isEmpty.mjs +1 -0
  178. package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
  179. package/_mjs/data/Cause/api/linearize.mjs +1 -0
  180. package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
  181. package/_mjs/data/Cause/api.mjs +2 -1
  182. package/_mjs/data/Cause/api.mjs.map +1 -1
  183. package/_mjs/data/Const/instances.mjs +1 -0
  184. package/_mjs/data/Const/instances.mjs.map +1 -1
  185. package/_mjs/data/Datum/api.mjs +1 -0
  186. package/_mjs/data/Datum/api.mjs.map +1 -1
  187. package/_mjs/data/DecodeError/definition.mjs +9 -0
  188. package/_mjs/data/DecodeError/definition.mjs.map +1 -1
  189. package/_mjs/data/DecodeError/instances.mjs +2 -0
  190. package/_mjs/data/DecodeError/instances.mjs.map +1 -0
  191. package/_mjs/data/DecodeError.mjs +1 -0
  192. package/_mjs/data/DecodeError.mjs.map +1 -1
  193. package/_mjs/data/Decoder/api.mjs +1 -0
  194. package/_mjs/data/Decoder/api.mjs.map +1 -1
  195. package/_mjs/data/Either/api/alignWith.mjs +1 -0
  196. package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
  197. package/_mjs/data/Either/api.mjs +1 -1
  198. package/_mjs/data/Either/api.mjs.map +1 -1
  199. package/_mjs/data/Either/definition.mjs +1 -1
  200. package/_mjs/data/Either/definition.mjs.map +1 -1
  201. package/_mjs/data/Either/instances.mjs +1 -1
  202. package/_mjs/data/Either/instances.mjs.map +1 -1
  203. package/_mjs/data/Environment/api.mjs +12 -21
  204. package/_mjs/data/Environment/api.mjs.map +1 -1
  205. package/_mjs/data/Environment/definition.mjs +1 -2
  206. package/_mjs/data/Environment/definition.mjs.map +1 -1
  207. package/_mjs/data/Intervals.mjs +2 -2
  208. package/_mjs/data/Intervals.mjs.map +1 -1
  209. package/_mjs/data/Patch/api.mjs +4 -3
  210. package/_mjs/data/Patch/api.mjs.map +1 -1
  211. package/_mjs/data/Struct/api.mjs +1 -0
  212. package/_mjs/data/Struct/api.mjs.map +1 -1
  213. package/_mjs/data/Tag/constructors.mjs +2 -2
  214. package/_mjs/data/Tag/constructors.mjs.map +1 -1
  215. package/_mjs/data/Tag/definition.mjs +3 -3
  216. package/_mjs/data/Tag/definition.mjs.map +1 -1
  217. package/_mjs/data/These/definition.mjs +1 -1
  218. package/_mjs/data/These/definition.mjs.map +1 -1
  219. package/_mjs/data/string/api.mjs +1 -1
  220. package/_mjs/data.mjs +2 -0
  221. package/_mjs/data.mjs.map +1 -0
  222. package/_mjs/global.mjs +2 -0
  223. package/_mjs/global.mjs.map +1 -0
  224. package/_mjs/index.mjs +2 -0
  225. package/_mjs/index.mjs.map +1 -0
  226. package/_mjs/json.mjs +2 -0
  227. package/_mjs/json.mjs.map +1 -0
  228. package/_mjs/optics/At/api.mjs +1 -0
  229. package/_mjs/optics/At/api.mjs.map +1 -1
  230. package/_mjs/optics/At/definition.mjs +1 -0
  231. package/_mjs/optics/At/definition.mjs.map +1 -1
  232. package/_mjs/optics/Index/api.mjs +1 -0
  233. package/_mjs/optics/Index/api.mjs.map +1 -1
  234. package/_mjs/optics/Iso/api.mjs +1 -0
  235. package/_mjs/optics/Iso/api.mjs.map +1 -1
  236. package/_mjs/optics/Iso/definition.mjs +2 -0
  237. package/_mjs/optics/Iso/definition.mjs.map +1 -1
  238. package/_mjs/optics/Lens/api.mjs +1 -0
  239. package/_mjs/optics/Lens/api.mjs.map +1 -1
  240. package/_mjs/optics/Lens/definition.mjs +2 -0
  241. package/_mjs/optics/Lens/definition.mjs.map +1 -1
  242. package/_mjs/optics/Optional/api/compose.mjs +1 -0
  243. package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
  244. package/_mjs/optics/Optional/definition.mjs +1 -0
  245. package/_mjs/optics/Optional/definition.mjs.map +1 -1
  246. package/_mjs/optics/Prism/api/compose.mjs +1 -0
  247. package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
  248. package/_mjs/optics/Prism/api/fromNullable.mjs +1 -0
  249. package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
  250. package/_mjs/optics/Prism/api/just.mjs +1 -0
  251. package/_mjs/optics/Prism/api/just.mjs.map +1 -1
  252. package/_mjs/optics/Prism/definition.mjs +1 -0
  253. package/_mjs/optics/Prism/definition.mjs.map +1 -1
  254. package/_mjs/optics/Traversal/api/compose.mjs +1 -0
  255. package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
  256. package/_mjs/optics/Traversal/api/fromTraversable.mjs +1 -0
  257. package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
  258. package/_mjs/optics/Traversal/definition.mjs +2 -0
  259. package/_mjs/optics/Traversal/definition.mjs.map +1 -1
  260. package/_mjs/optics.mjs +2 -0
  261. package/_mjs/optics.mjs.map +1 -0
  262. package/_mjs/typeclass/Eq/derivations.mjs +1 -0
  263. package/_mjs/typeclass/Eq/derivations.mjs.map +1 -1
  264. package/_mjs/typeclass/Guard/api.mjs +1 -0
  265. package/_mjs/typeclass/Guard/api.mjs.map +1 -1
  266. package/_mjs/typeclass/HashEq.mjs +1 -0
  267. package/_mjs/typeclass/HashEq.mjs.map +1 -1
  268. package/_mjs/typeclass/Monoid.mjs +1 -0
  269. package/_mjs/typeclass/Monoid.mjs.map +1 -1
  270. package/_mjs/typeclass/Ord/definition.mjs +1 -0
  271. package/_mjs/typeclass/Ord/definition.mjs.map +1 -1
  272. package/_mjs/typeclass/Ord/instances.mjs +3 -0
  273. package/_mjs/typeclass/Ord/instances.mjs.map +1 -1
  274. package/_mjs/typeclass/Semigroup/api.mjs +1 -0
  275. package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
  276. package/_mjs/typeclass/Semigroup/derivations.mjs +1 -0
  277. package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
  278. package/_mjs/typeclass/Showable/show.mjs.map +1 -1
  279. package/_mjs/util.mjs +2 -0
  280. package/_mjs/util.mjs.map +1 -0
  281. package/_src/collection/compat/Array/api.ts +10 -10
  282. package/_src/collection/compat/Array/definition.ts +3 -3
  283. package/_src/collection/compat/Array/derivations.ts +85 -0
  284. package/_src/collection/compat/Array.ts +1 -0
  285. package/_src/collection/compat/Record/instances.ts +0 -1
  286. package/_src/collection/compat.ts +4 -0
  287. package/_src/collection/immutable/Conc/definition.ts +11 -10
  288. package/_src/collection/immutable/Conc/derivations.ts +28 -0
  289. package/_src/collection/immutable/Conc.ts +1 -0
  290. package/_src/collection/immutable/ImmutableArray/api.ts +6 -6
  291. package/_src/collection/immutable/ImmutableArray/constructors.ts +2 -2
  292. package/_src/collection/immutable/ImmutableArray/definition.ts +3 -0
  293. package/_src/collection/immutable/ImmutableArray/derivations.ts +28 -0
  294. package/_src/collection/immutable/ImmutableArray/instances.ts +5 -0
  295. package/_src/collection/immutable/ImmutableArray.ts +1 -0
  296. package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +2 -2
  297. package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +2 -2
  298. package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +44 -0
  299. package/_src/collection/immutable/ImmutableNonEmptyArray.ts +1 -0
  300. package/_src/collection/immutable/List/definition.ts +2 -2
  301. package/_src/collection/immutable/Vector/definition.ts +1 -1
  302. package/_src/collection/immutable/Vector/internal.ts +1 -1
  303. package/_src/collection/immutable.ts +12 -0
  304. package/_src/collection/mutable/HashMap.ts +4 -0
  305. package/_src/collection/mutable.ts +6 -0
  306. package/_src/collection/weak.ts +4 -0
  307. package/_src/collection.ts +7 -0
  308. package/_src/control/Eval/definition.ts +1 -1
  309. package/_src/control/Z/api.ts +24 -27
  310. package/_src/control/Z/definition.ts +6 -7
  311. package/_src/control/Z/runtime.ts +4 -4
  312. package/_src/control.ts +5 -0
  313. package/_src/data/DecodeError/definition.ts +8 -0
  314. package/_src/data/DecodeError/instances.ts +0 -0
  315. package/_src/data/DecodeError.ts +1 -0
  316. package/_src/data/Either/definition.ts +1 -1
  317. package/_src/data/Environment/api.ts +8 -14
  318. package/_src/data/Environment/definition.ts +1 -2
  319. package/_src/data/Maybe/definition.ts +2 -2
  320. package/_src/data/Patch/api.ts +4 -4
  321. package/_src/data/Tag/constructors.ts +2 -2
  322. package/_src/data/Tag/definition.ts +3 -2
  323. package/_src/data/These/definition.ts +1 -1
  324. package/_src/data/string/api.ts +1 -1
  325. package/_src/data.ts +35 -0
  326. package/_src/global.ts +252 -0
  327. package/_src/index.ts +8 -0
  328. package/_src/json.ts +5 -0
  329. package/_src/optics.ts +12 -0
  330. package/_src/typeclass/Showable/show.ts +2 -2
  331. package/_src/util.ts +8 -0
  332. package/collection/compat/Array/api.d.ts +10 -10
  333. package/collection/compat/Array/definition.d.ts +3 -3
  334. package/collection/compat/Array/derivations.d.ts +24 -0
  335. package/collection/compat/Array.d.ts +1 -0
  336. package/collection/compat.d.ts +2 -0
  337. package/collection/immutable/Conc/definition.d.ts +17 -16
  338. package/collection/immutable/Conc/derivations.d.ts +14 -0
  339. package/collection/immutable/Conc.d.ts +1 -0
  340. package/collection/immutable/ImmutableArray/api.d.ts +6 -6
  341. package/collection/immutable/ImmutableArray/constructors.d.ts +2 -2
  342. package/collection/immutable/ImmutableArray/definition.d.ts +4 -0
  343. package/collection/immutable/ImmutableArray/derivations.d.ts +14 -0
  344. package/collection/immutable/ImmutableArray.d.ts +1 -0
  345. package/collection/immutable/ImmutableNonEmptyArray/constructors.d.ts +2 -2
  346. package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +2 -2
  347. package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +14 -0
  348. package/collection/immutable/ImmutableNonEmptyArray.d.ts +1 -0
  349. package/collection/immutable/List/definition.d.ts +2 -2
  350. package/collection/immutable/Vector/definition.d.ts +1 -1
  351. package/collection/immutable/Vector/internal.d.ts +1 -1
  352. package/collection/immutable.d.ts +10 -0
  353. package/collection/mutable/HashMap.d.ts +1 -0
  354. package/collection/mutable.d.ts +4 -0
  355. package/collection/weak.d.ts +2 -0
  356. package/collection.d.ts +5 -0
  357. package/control/Z/api.d.ts +24 -24
  358. package/control/Z/definition.d.ts +6 -6
  359. package/control/Z/runtime.d.ts +4 -4
  360. package/control.d.ts +3 -0
  361. package/data/DecodeError/definition.d.ts +6 -0
  362. package/data/DecodeError/instances.d.ts +1 -0
  363. package/data/DecodeError.d.ts +1 -0
  364. package/data/Environment/definition.d.ts +2 -3
  365. package/data/Maybe/definition.d.ts +4 -2
  366. package/data/Tag/constructors.d.ts +1 -1
  367. package/data/Tag/definition.d.ts +2 -1
  368. package/data/string/api.d.ts +1 -1
  369. package/data.d.ts +33 -0
  370. package/global.d.ts +237 -0
  371. package/index.d.ts +8 -0
  372. package/json.d.ts +3 -0
  373. package/optics.d.ts +10 -0
  374. package/package.json +6 -2
  375. package/typeclass/Showable/show.d.ts +1 -1
  376. package/util.d.ts +6 -0
@@ -231,25 +231,25 @@ export declare function findLastMap_<A, B>(as: ImmutableArray<A>, f: (a: A) => M
231
231
  export declare function findLastMapWithIndex_<A, B>(as: ImmutableArray<A>, f: (i: number, a: A) => Maybe<B>): Maybe<B>;
232
232
  /**
233
233
  * @tsplus fluent fncts.ImmutableArray foldLeftWithIndex
234
- * @tsplus fluent fncts.base.MutableArray foldLeftWithIndex
234
+ * @tsplus fluent fncts.MutableArray foldLeftWithIndex
235
235
  * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/api"
236
236
  */
237
237
  export declare function foldLeftWithIndex_<A, B>(self: ImmutableArray<A>, b: B, f: (i: number, b: B, a: A) => B): B;
238
238
  /**
239
239
  * @tsplus fluent fncts.ImmutableArray foldLeft
240
- * @tsplus fluent fncts.base.MutableArray foldLeft
240
+ * @tsplus fluent fncts.MutableArray foldLeft
241
241
  * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/api"
242
242
  */
243
243
  export declare function foldLeft_<A, B>(self: ImmutableArray<A>, b: B, f: (b: B, a: A) => B): B;
244
244
  /**
245
245
  * @tsplus fluent fncts.ImmutableArray foldLeftWhile
246
- * @tsplus fluent fncts.base.MutableArray foldLeftWhile
246
+ * @tsplus fluent fncts.MutableArray foldLeftWhile
247
247
  * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/api"
248
248
  */
249
249
  export declare function foldLeftWhile_<A, B>(self: ImmutableArray<A>, b: B, p: Predicate<B>, f: (b: B, a: A) => B): B;
250
250
  /**
251
251
  * @tsplus fluent fncts.ImmutableArray foldLeftWithIndexWhile
252
- * @tsplus fluent fncts.base.MutableArray foldLeftWithIndexWhile
252
+ * @tsplus fluent fncts.MutableArray foldLeftWithIndexWhile
253
253
  * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/api"
254
254
  */
255
255
  export declare function foldLeftWithIndexWhile_<A, B>(self: ImmutableArray<A>, b: B, p: Predicate<B>, f: (i: number, b: B, a: A) => B): B;
@@ -296,7 +296,7 @@ export declare function foldRightWithIndexWhile_<A, B>(self: ImmutableArray<A>,
296
296
  export declare function forEach_<A, B>(self: ImmutableArray<A>, f: (a: A) => B): void;
297
297
  /**
298
298
  * @tsplus fluent fncts.ImmutableArray get
299
- * @tsplus fluent fncts.base.MutableArray get
299
+ * @tsplus fluent fncts.MutableArray get
300
300
  * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/api"
301
301
  */
302
302
  export declare function get_<A>(self: ImmutableArray<A>, i: number): Maybe<A>;
@@ -422,7 +422,7 @@ export declare function partitionMap_<A, B, C>(self: ImmutableArray<A>, f: (a: A
422
422
  export declare function prepend_<A, B>(self: ImmutableArray<A>, head: B): ImmutableArray<A | B>;
423
423
  /**
424
424
  * @tsplus fluent fncts.ImmutableArray prependAll
425
- * @tsplus fluent fncts.base.MutableArray prependAll
425
+ * @tsplus fluent fncts.MutableArray prependAll
426
426
  * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/api"
427
427
  */
428
428
  export declare function prependAll_<A>(self: ImmutableArray<A>, a: A): ImmutableArray<A>;
@@ -1,7 +1,7 @@
1
1
  import { ImmutableArray } from "@fncts/base/collection/immutable/ImmutableArray/definition";
2
2
  /**
3
- * @tsplus getter fncts.base.ReadonlyArray asImmutableArray
4
- * @tsplus getter fncts.base.Array asImmutableArray
3
+ * @tsplus getter fncts.ReadonlyArray asImmutableArray
4
+ * @tsplus getter fncts.Array asImmutableArray
5
5
  * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/constructors"
6
6
  */
7
7
  export declare function asImmutableArray<A>(self: ReadonlyArray<A>): ImmutableArray<A>;
@@ -23,4 +23,8 @@ export declare class ImmutableArray<A> implements Equatable, Hashable, Iterable<
23
23
  get [Symbol.hash](): number;
24
24
  [Symbol.iterator](): IterableIterator<A>;
25
25
  }
26
+ /**
27
+ * @tsplus static fncts.ImmutableArrayOps is
28
+ * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/definition"
29
+ */
26
30
  export declare function isImmutableArray(u: unknown): u is ImmutableArray<unknown>;
@@ -0,0 +1,14 @@
1
+ import { ImmutableArray } from "@fncts/base/collection/immutable/ImmutableArray/definition";
2
+ import { Guard } from "@fncts/base/typeclass/Guard";
3
+ import { Decoder } from "@fncts/base/data/Decoder";
4
+ import type { Check } from "@fncts/typelevel/Check";
5
+ /**
6
+ * @tsplus derive fncts.Guard[fncts.ImmutableArray]<_> 10
7
+ * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/derivations"
8
+ */
9
+ export declare function deriveGuard<A extends ImmutableArray<any>>(...[element]: [A] extends [ImmutableArray<infer A>] ? [element: Guard<A>] : never): Guard<A>;
10
+ /**
11
+ * @tsplus derive fncts.Decoder[fncts.ImmutableArray]<_> 10
12
+ * @tsplus location "@fncts/base/collection/immutable/ImmutableArray/derivations"
13
+ */
14
+ export declare function deriveDecoder<A extends ImmutableArray<any>>(...[array, elem]: [A] extends [ImmutableArray<infer _A>] ? Check<Check.IsEqual<A, ImmutableArray<_A>>> extends Check.True ? [array: Decoder<Array<_A>>, elem: Decoder<_A>] : never : never): Decoder<A>;
@@ -1,6 +1,7 @@
1
1
  export * from "./ImmutableArray/api.js";
2
2
  export * from "./ImmutableArray/constructors.js";
3
3
  export * from "./ImmutableArray/definition.js";
4
+ export * from "./ImmutableArray/derivations.js";
4
5
  export * from "./ImmutableArray/instances.js";
5
6
  export * from "./ImmutableArray/api/chunksOf.js";
6
7
  export * from "./ImmutableArray/api/slice.js";
@@ -6,8 +6,8 @@ export declare function allocWithHead<A>(head: A, length: number): Array<A> & {
6
6
  0: A;
7
7
  };
8
8
  /**
9
- * @tsplus getter fncts.base.ReadonlyArray unsafeAsNonEmptyArray
10
- * @tsplus getter fncts.base.Array unsafeAsNonEmptyArray
9
+ * @tsplus getter fncts.ReadonlyArray unsafeAsNonEmptyArray
10
+ * @tsplus getter fncts.Array unsafeAsNonEmptyArray
11
11
  * @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/constructors"
12
12
  */
13
13
  export declare function unsafeAsNonEmptyArray<A>(self: ReadonlyArray<A>): ImmutableNonEmptyArray<A>;
@@ -17,13 +17,13 @@ export declare class ImmutableNonEmptyArray<A> extends ImmutableArray<A> {
17
17
  constructor(_array: ReadonlyNonEmptyArray<A>);
18
18
  }
19
19
  /**
20
- * @tsplus type fncts.base.NonEmptyArray
20
+ * @tsplus type fncts.NonEmptyArray
21
21
  */
22
22
  export interface NonEmptyArray<T> extends Array<T> {
23
23
  0: T;
24
24
  }
25
25
  /**
26
- * @tsplus type fncts.base.ReadonlyNonEmptyArray
26
+ * @tsplus type fncts.ReadonlyNonEmptyArray
27
27
  */
28
28
  export interface ReadonlyNonEmptyArray<T> extends ReadonlyArray<T> {
29
29
  readonly 0: T;
@@ -0,0 +1,14 @@
1
+ import { ImmutableNonEmptyArray } from "@fncts/base/collection/immutable/ImmutableNonEmptyArray/definition";
2
+ import { Guard } from "@fncts/base/typeclass/Guard";
3
+ import { Decoder } from "@fncts/base/data/Decoder";
4
+ import type { Check } from "@fncts/typelevel/Check";
5
+ /**
6
+ * @tsplus derive fncts.Guard[fncts.ImmutableNonEmptyArray]<_> 10
7
+ * @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/derivations"
8
+ */
9
+ export declare function deriveGuard<A extends ImmutableNonEmptyArray<any>>(...[elem]: [A] extends [ImmutableNonEmptyArray<infer _A>] ? [elem: Guard<_A>] : never): Guard<A>;
10
+ /**
11
+ * @tsplus derive fncts.Decoder[fncts.ImmutableNonEmptyArray]<_> 10
12
+ * @tsplus location "@fncts/base/collection/immutable/ImmutableNonEmptyArray/derivations"
13
+ */
14
+ export declare function deriveDecoder<A extends ImmutableNonEmptyArray<any>>(...[array, elem]: [A] extends [ImmutableNonEmptyArray<infer _A>] ? Check<Check.IsEqual<A, ImmutableNonEmptyArray<_A>>> extends Check.True ? [array: Decoder<Array<_A>>, elem: Decoder<_A>] : never : never): Decoder<A>;
@@ -1,5 +1,6 @@
1
1
  export * from "./ImmutableNonEmptyArray/api.js";
2
2
  export * from "./ImmutableNonEmptyArray/constructors.js";
3
3
  export * from "./ImmutableNonEmptyArray/definition.js";
4
+ export * from "./ImmutableNonEmptyArray/derivations.js";
4
5
  export * from "./ImmutableNonEmptyArray/destructors.js";
5
6
  export * from "./ImmutableNonEmptyArray/instances.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @tsplus type fncts.base.List.Cons
2
+ * @tsplus type fncts.List.Cons
3
3
  * @tsplus companion fncts.ConsOps
4
4
  */
5
5
  export declare class Cons<A> implements Iterable<A> {
@@ -10,7 +10,7 @@ export declare class Cons<A> implements Iterable<A> {
10
10
  [Symbol.iterator](): Iterator<A>;
11
11
  }
12
12
  /**
13
- * @tsplus type fncts.base.List.Nil
13
+ * @tsplus type fncts.List.Nil
14
14
  * @tsplus companion fncts.NilOps
15
15
  */
16
16
  export declare class Nil<A> implements Iterable<A> {
@@ -47,7 +47,7 @@ export declare class Vector<A> implements Iterable<A> {
47
47
  [Symbol.equals](that: unknown): boolean;
48
48
  }
49
49
  /**
50
- * @tsplus type fncts.base.MutableVector
50
+ * @tsplus type fncts.MutableVector
51
51
  */
52
52
  export interface MutableVector<A> {
53
53
  readonly _typeId: VectorTypeId;
@@ -106,7 +106,7 @@ export declare function incrementDepth(bits: number): number;
106
106
  export declare function decrementDepth(bits: number): number;
107
107
  /**
108
108
  * Appends the value to the Vector by _mutating_ the Vector and its content.
109
- * @tsplus fluent fncts.base.MutableVector push
109
+ * @tsplus fluent fncts.MutableVector push
110
110
  * @tsplus location "@fncts/base/collection/immutable/Vector/internal"
111
111
  */
112
112
  export declare function push<A>(l: MutableVector<A>, value: A): MutableVector<A>;
@@ -0,0 +1,10 @@
1
+ export type {} from "./immutable/Conc.js";
2
+ export type {} from "./immutable/HashMap.js";
3
+ export type {} from "./immutable/HashSet.js";
4
+ export type {} from "./immutable/ImmutableArray.js";
5
+ export type {} from "./immutable/ImmutableNonEmptyArray.js";
6
+ export type {} from "./immutable/List.js";
7
+ export type {} from "./immutable/Queue.js";
8
+ export type {} from "./immutable/RoseTree.js";
9
+ export type {} from "./immutable/SortedMap.js";
10
+ export type {} from "./immutable/Vector.js";
@@ -17,6 +17,7 @@ export declare class HashMap<K, V> implements Iterable<readonly [K, V]> {
17
17
  private contentSize;
18
18
  get size(): number;
19
19
  has(key: K): boolean;
20
+ unsafeGet(key: K): V | undefined;
20
21
  get(key: K): Maybe<V>;
21
22
  set(key: K, value: V): Maybe<V>;
22
23
  delete(key: K): Maybe<V>;
@@ -0,0 +1,4 @@
1
+ export type {} from "./mutable/HashMap.js";
2
+ export type {} from "./mutable/HashSet.js";
3
+ export type {} from "./mutable/internal.js";
4
+ export type {} from "./mutable/ListBuffer.js";
@@ -0,0 +1,2 @@
1
+ export type {} from "./weak/IterableWeakMap.js";
2
+ export type {} from "./weak/IterableWeakSet.js";
@@ -0,0 +1,5 @@
1
+ export type {} from "./collection/compat.js";
2
+ export type {} from "./collection/immutable.js";
3
+ export type {} from "./collection/Iterable.js";
4
+ export type {} from "./collection/mutable.js";
5
+ export type {} from "./collection/weak.js";
@@ -37,12 +37,12 @@ export declare function bimap_<W, S1, S2, R, E, A, G, B>(pab: Z<W, S1, S2, R, E,
37
37
  * @tsplus fluent fncts.control.Z catchAll
38
38
  * @tsplus location "@fncts/base/control/Z/api"
39
39
  */
40
- export declare function catchAll_<W, S1, S2, R, E, A, S3, R1, E1, B>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: E) => Z<W, S1, S3, R1, E1, B>): Z<W, S1, S3, R & R1, E1, A | B>;
40
+ export declare function catchAll_<W, S1, S2, R, E, A, S3, R1, E1, B>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: E) => Z<W, S1, S3, R1, E1, B>): Z<W, S1, S3, R | R1, E1, A | B>;
41
41
  /**
42
42
  * @tsplus fluent fncts.control.Z catchJust
43
43
  * @tsplus location "@fncts/base/control/Z/api"
44
44
  */
45
- export declare function catchJust_<W, S1, S2, R, E, A, S3, R1, E1, B>(fa: Z<W, S1, S2, R, E, A>, f: (e: E) => Maybe<Z<W, S1, S3, R1, E1, B>>): Z<W, S1, S2 | S3, R & R1, E | E1, A | B>;
45
+ export declare function catchJust_<W, S1, S2, R, E, A, S3, R1, E1, B>(fa: Z<W, S1, S2, R, E, A>, f: (e: E) => Maybe<Z<W, S1, S3, R1, E1, B>>): Z<W, S1, S2 | S3, R | R1, E | E1, A | B>;
46
46
  /**
47
47
  * @tsplus fluent fncts.control.Z flatMap
48
48
  * @tsplus location "@fncts/base/control/Z/api"
@@ -108,22 +108,22 @@ export declare function erase<W, S1, S2, R, E, A>(wa: Z<W, S1, S2, R, E, A>): Z<
108
108
  * @tsplus static fncts.control.ZOps fail
109
109
  * @tsplus location "@fncts/base/control/Z/api"
110
110
  */
111
- export declare function fail<E>(e: Lazy<E>, __tsplusTrace?: string): Z<never, unknown, never, unknown, E, never>;
111
+ export declare function fail<E>(e: Lazy<E>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never>;
112
112
  /**
113
113
  * @tsplus static fncts.control.ZOps failNow
114
114
  * @tsplus location "@fncts/base/control/Z/api"
115
115
  */
116
- export declare function failNow<E>(e: E, __tsplusTrace?: string): Z<never, unknown, never, unknown, E, never>;
116
+ export declare function failNow<E>(e: E, __tsplusTrace?: string): Z<never, unknown, never, never, E, never>;
117
117
  /**
118
118
  * @tsplus static fncts.control.ZOps failCause
119
119
  * @tsplus location "@fncts/base/control/Z/api"
120
120
  */
121
- export declare function failCause<E>(cause: Lazy<Cause<E>>, __tsplusTrace?: string): Z<never, unknown, never, unknown, E, never>;
121
+ export declare function failCause<E>(cause: Lazy<Cause<E>>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never>;
122
122
  /**
123
123
  * @tsplus static fncts.control.ZOps failCauseNow
124
124
  * @tsplus location "@fncts/base/control/Z/api"
125
125
  */
126
- export declare function failCauseNow<E>(cause: Cause<E>, __tsplusTrace?: string): Z<never, unknown, never, unknown, E, never>;
126
+ export declare function failCauseNow<E>(cause: Cause<E>, __tsplusTrace?: string): Z<never, unknown, never, never, E, never>;
127
127
  /**
128
128
  * @tsplus getter fncts.control.Z flatten
129
129
  * @tsplus location "@fncts/base/control/Z/api"
@@ -134,12 +134,12 @@ export declare function flatten<W, S1, S2, R, E, A, W1, S3, R1, E1>(mma: Z<W, S1
134
134
  * @tsplus static fncts.control.ZOps get
135
135
  * @tsplus location "@fncts/base/control/Z/api"
136
136
  */
137
- export declare function get<S>(): Z<never, S, S, unknown, never, S>;
137
+ export declare function get<S>(): Z<never, S, S, never, never, S>;
138
138
  /**
139
139
  * @tsplus static fncts.control.ZOps gets
140
140
  * @tsplus location "@fncts/base/control/Z/api"
141
141
  */
142
- export declare function gets<S, A>(f: (s: S) => A): Z<never, S, S, unknown, never, A>;
142
+ export declare function gets<S, A>(f: (s: S) => A): Z<never, S, S, never, never, A>;
143
143
  /**
144
144
  * @tsplus static fncts.control.ZOps getsZ
145
145
  * @tsplus location "@fncts/base/control/Z/api"
@@ -149,12 +149,12 @@ export declare function getsZ<S, W, R, E, A>(f: (s: S) => Z<W, S, S, R, E, A>):
149
149
  * @tsplus static fncts.control.ZOps halt
150
150
  * @tsplus location "@fncts/base/control/Z/api"
151
151
  */
152
- export declare function halt(defect: Lazy<unknown>, __tsplusTrace?: string): Z<never, unknown, never, unknown, never, never>;
152
+ export declare function halt(defect: Lazy<unknown>, __tsplusTrace?: string): Z<never, unknown, never, never, never, never>;
153
153
  /**
154
154
  * @tsplus static fncts.control.ZOps haltNow
155
155
  * @tsplus location "@fncts/base/control/Z/api"
156
156
  */
157
- export declare function haltNow(defect: unknown, __tsplusTrace?: string): Z<never, unknown, never, unknown, never, never>;
157
+ export declare function haltNow(defect: unknown, __tsplusTrace?: string): Z<never, unknown, never, never, never, never>;
158
158
  /**
159
159
  * @tsplus getter fncts.control.Z listen
160
160
  * @tsplus location "@fncts/base/control/Z/api"
@@ -201,17 +201,17 @@ export declare function match_<W, S1, S2, R, E, A, B, C>(fa: Z<W, S1, S2, R, E,
201
201
  * @tsplus fluent fncts.control.Z matchZ
202
202
  * @tsplus location "@fncts/base/control/Z/api"
203
203
  */
204
- export declare function matchZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: E) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S1 & S5, S3 | S4, R & R1 & R2, E1 | E2, B | C>;
204
+ export declare function matchZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: E) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S1 & S5, S3 | S4, R | R1 | R2, E1 | E2, B | C>;
205
205
  /**
206
206
  * @tsplus fluent fncts.control.Z matchCauseZ
207
207
  * @tsplus location "@fncts/base/control/Z/api"
208
208
  */
209
- export declare function matchCauseZ_<W, S1, S2, R, E, A, W1, S0, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: Cause<E>) => Z<W1, S0, S3, R1, E1, B>, onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S0 & S1, S3 | S4, R & R1 & R2, E1 | E2, B | C>;
209
+ export declare function matchCauseZ_<W, S1, S2, R, E, A, W1, S0, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (e: Cause<E>) => Z<W1, S0, S3, R1, E1, B>, onSuccess: (a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S0 & S1, S3 | S4, R | R1 | R2, E1 | E2, B | C>;
210
210
  /**
211
211
  * @tsplus fluent fncts.control.Z matchLogZ
212
212
  * @tsplus location "@fncts/base/control/Z/api"
213
213
  */
214
- export declare function matchLogZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (ws: Conc<W>, e: E) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (ws: Conc<W>, a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S1 & S5, S3 | S4, R & R1 & R2, E1 | E2, B | C>;
214
+ export declare function matchLogZ_<W, S1, S5, S2, R, E, A, W1, S3, R1, E1, B, W2, S4, R2, E2, C>(fa: Z<W, S1, S2, R, E, A>, onFailure: (ws: Conc<W>, e: E) => Z<W1, S5, S3, R1, E1, B>, onSuccess: (ws: Conc<W>, a: A) => Z<W2, S2, S4, R2, E2, C>): Z<W | W1 | W2, S1 & S5, S3 | S4, R | R1 | R2, E1 | E2, B | C>;
215
215
  /**
216
216
  * Recovers from errors by accepting one computation to execute for the case
217
217
  * of an error, and one computation to execute for the case of success. More powerful
@@ -227,25 +227,25 @@ export declare function matchLogCauseZ_<W, S1, S2, R, E, A, W1, S0, S3, R1, E1,
227
227
  * @tsplus static fncts.control.ZOps modify
228
228
  * @tsplus location "@fncts/base/control/Z/api"
229
229
  */
230
- export declare function modify<S1, S2, A>(f: (s: S1) => readonly [A, S2]): Z<never, S1, S2, unknown, never, A>;
230
+ export declare function modify<S1, S2, A>(f: (s: S1) => readonly [A, S2]): Z<never, S1, S2, never, never, A>;
231
231
  /**
232
232
  * Constructs a computation that may fail from the specified modify function.
233
233
  * @tsplus static fncts.control.ZOps modifyEither
234
234
  * @tsplus location "@fncts/base/control/Z/api"
235
235
  */
236
- export declare function modifyEither<S1, S2, E, A>(f: (s: S1) => Either<E, readonly [A, S2]>): Z<never, S1, S2, unknown, E, A>;
236
+ export declare function modifyEither<S1, S2, E, A>(f: (s: S1) => Either<E, readonly [A, S2]>): Z<never, S1, S2, never, E, A>;
237
237
  /**
238
238
  * @tsplus fluent fncts.control.Z orElse
239
239
  * @tsplus location "@fncts/base/control/Z/api"
240
240
  */
241
- export declare function orElse_<W, S1, S2, R, E, A, W1, S3, R1, E1, A1>(fa: Z<W, S1, S2, R, E, A>, fb: Lazy<Z<W1, S1, S3, R1, E1, A1>>): Z<W | W1, S1, S2 | S3, R & R1, E | E1, A | A1>;
241
+ export declare function orElse_<W, S1, S2, R, E, A, W1, S3, R1, E1, A1>(fa: Z<W, S1, S2, R, E, A>, fb: Lazy<Z<W1, S1, S3, R1, E1, A1>>): Z<W | W1, S1, S2 | S3, R | R1, E | E1, A | A1>;
242
242
  /**
243
243
  * Executes this computation and returns its value, if it succeeds, but
244
244
  * otherwise executes the specified computation.
245
245
  * @tsplus fluent fncts.control.Z orElseEither
246
246
  * @tsplus location "@fncts/base/control/Z/api"
247
247
  */
248
- export declare function orElseEither_<W, S1, S2, R, E, A, S3, S4, R1, E1, A1>(fa: Z<W, S1, S2, R, E, A>, that: Lazy<Z<W, S3, S4, R1, E1, A1>>): Z<W, S1 & S3, S2 | S4, R & R1, E1, Either<A, A1>>;
248
+ export declare function orElseEither_<W, S1, S2, R, E, A, S3, S4, R1, E1, A1>(fa: Z<W, S1, S2, R, E, A>, that: Lazy<Z<W, S3, S4, R1, E1, A1>>): Z<W, S1 & S3, S2 | S4, R | R1, E1, Either<A, A1>>;
249
249
  /**
250
250
  * @tsplus fluent fncts.control.Z provideEnvironment
251
251
  * @tsplus location "@fncts/base/control/Z/api"
@@ -256,7 +256,7 @@ export declare function provideEnvironment_<W, S1, S2, R, E, A>(fa: Z<W, S1, S2,
256
256
  * @tsplus static fncts.control.ZOps put
257
257
  * @tsplus location "@fncts/base/control/Z/api"
258
258
  */
259
- export declare function put<S>(s: S): Z<never, unknown, S, unknown, never, void>;
259
+ export declare function put<S>(s: S): Z<never, unknown, S, never, never, void>;
260
260
  /**
261
261
  * Repeats this computation the specified number of times (or until the first failure)
262
262
  * passing the updated state to each successive repetition.
@@ -275,12 +275,12 @@ export declare function repeatUntil_<W, S1, S2 extends S1, R, E, A>(ma: Z<W, S1,
275
275
  * @tsplus static fncts.control.ZOps succeed
276
276
  * @tsplus location "@fncts/base/control/Z/api"
277
277
  */
278
- export declare function succeed<A, W = never, S1 = unknown, S2 = never>(effect: Lazy<A>, __tsplusTrace?: string): Z<W, S1, S2, unknown, never, A>;
278
+ export declare function succeed<A, W = never, S1 = unknown, S2 = never>(effect: Lazy<A>, __tsplusTrace?: string): Z<W, S1, S2, never, never, A>;
279
279
  /**
280
280
  * @tsplus static fncts.control.ZOps succeedNow
281
281
  * @tsplus location "@fncts/base/control/Z/api"
282
282
  */
283
- export declare function succeedNow<A, W = never, S1 = unknown, S2 = never>(a: A, __tsplusTrace?: string): Z<W, S1, S2, unknown, never, A>;
283
+ export declare function succeedNow<A, W = never, S1 = unknown, S2 = never>(a: A, __tsplusTrace?: string): Z<W, S1, S2, never, never, A>;
284
284
  /**
285
285
  * @tsplus fluent fncts.control.Z tap
286
286
  * @tsplus location "@fncts/base/control/Z/api"
@@ -290,12 +290,12 @@ export declare function tap_<W, S1, S2, R, E, A, W1, S3, R1, E1, B>(ma: Z<W, S1,
290
290
  * @tsplus static fncts.control.ZOps tell
291
291
  * @tsplus location "@fncts/base/control/Z/api"
292
292
  */
293
- export declare function tell<W>(w: W): Z<W, unknown, never, unknown, never, void>;
293
+ export declare function tell<W>(w: W): Z<W, unknown, never, never, never, void>;
294
294
  /**
295
295
  * @tsplus static fncts.control.ZOps tellAll
296
296
  * @tsplus location "@fncts/base/control/Z/api"
297
297
  */
298
- export declare function tellAll<W>(ws: Conc<W>): Z<W, unknown, never, unknown, never, void>;
298
+ export declare function tellAll<W>(ws: Conc<W>): Z<W, unknown, never, never, never, void>;
299
299
  /**
300
300
  * Like `map`, but also allows the state to be modified.
301
301
  * @tsplus fluent fncts.control.Z transform
@@ -306,13 +306,13 @@ export declare function transform_<W, S1, S2, R, E, A, S3, B>(ma: Z<W, S1, S2, R
306
306
  * @tsplus static fncts.control.ZOps unit
307
307
  * @tsplus location "@fncts/base/control/Z/api"
308
308
  */
309
- export declare const unit: Z<never, unknown, never, unknown, never, void>;
309
+ export declare const unit: Z<never, unknown, never, never, never, void>;
310
310
  /**
311
311
  * Constructs a computation from the specified update function.
312
312
  * @tsplus static fncts.control.ZOps update
313
313
  * @tsplus location "@fncts/base/control/Z/api"
314
314
  */
315
- export declare function update<S1, S2>(f: (s: S1) => S2): Z<never, S1, S2, unknown, never, void>;
315
+ export declare function update<S1, S2>(f: (s: S1) => S2): Z<never, S1, S2, never, never, void>;
316
316
  /**
317
317
  * @tsplus fluent fncts.control.Z write
318
318
  * @tsplus location "@fncts/base/control/Z/api"
@@ -32,7 +32,7 @@ export declare abstract class Z<W, S1, S2, R, E, A> {
32
32
  readonly _W: () => W;
33
33
  readonly _S1: (_: S1) => void;
34
34
  readonly _S2: () => S2;
35
- readonly _R: (_: R) => void;
35
+ readonly _R: () => R;
36
36
  readonly _E: () => E;
37
37
  readonly _A: () => A;
38
38
  }
@@ -71,12 +71,12 @@ export declare const enum ZTag {
71
71
  Listen = "Listen",
72
72
  MapLog = "MapLog"
73
73
  }
74
- export declare class SucceedNow<A> extends Z<never, unknown, never, unknown, never, A> {
74
+ export declare class SucceedNow<A> extends Z<never, unknown, never, never, never, A> {
75
75
  readonly value: A;
76
76
  readonly _tag = ZTag.SucceedNow;
77
77
  constructor(value: A);
78
78
  }
79
- export declare class Succeed<A> extends Z<never, unknown, never, unknown, never, A> {
79
+ export declare class Succeed<A> extends Z<never, unknown, never, never, never, A> {
80
80
  readonly effect: () => A;
81
81
  readonly _tag = ZTag.Succeed;
82
82
  constructor(effect: () => A);
@@ -86,12 +86,12 @@ export declare class Defer<W, S1, S2, R, E, A> extends Z<W, S1, S2, R, E, A> {
86
86
  readonly _tag = ZTag.Defer;
87
87
  constructor(make: () => Z<W, S1, S2, R, E, A>);
88
88
  }
89
- export declare class Fail<E> extends Z<never, unknown, never, unknown, E, never> {
89
+ export declare class Fail<E> extends Z<never, unknown, never, never, E, never> {
90
90
  readonly cause: Cause<E>;
91
91
  readonly _tag = ZTag.Fail;
92
92
  constructor(cause: Cause<E>);
93
93
  }
94
- export declare class Modify<S1, S2, A> extends Z<never, S1, S2, unknown, never, A> {
94
+ export declare class Modify<S1, S2, A> extends Z<never, S1, S2, never, never, A> {
95
95
  readonly run: (s1: S1) => readonly [A, S2];
96
96
  readonly _tag = ZTag.Modify;
97
97
  constructor(run: (s1: S1) => readonly [A, S2]);
@@ -120,7 +120,7 @@ export declare class Provide<W, S1, S2, R, E, A> extends Z<W, S1, S2, never, E,
120
120
  readonly _tag = ZTag.Provide;
121
121
  constructor(ma: Z<W, S1, S2, R, E, A>, env: Environment<R>);
122
122
  }
123
- export declare class Tell<W> extends Z<W, unknown, never, unknown, never, void> {
123
+ export declare class Tell<W> extends Z<W, unknown, never, never, never, void> {
124
124
  readonly log: Conc<W>;
125
125
  readonly _tag = ZTag.Tell;
126
126
  constructor(log: Conc<W>);
@@ -35,22 +35,22 @@ export declare function unsafeRunReader_<W, R, A>(ma: Z<W, unknown, never, R, ne
35
35
  * @tsplus fluent fncts.control.Z unsafeRunState
36
36
  * @tsplus location "@fncts/base/control/Z/runtime"
37
37
  */
38
- export declare function unsafeRunState_<W, S1, S2, A>(ma: Z<W, S1, S2, unknown, never, A>, s: S1): S2;
38
+ export declare function unsafeRunState_<W, S1, S2, A>(ma: Z<W, S1, S2, never, never, A>, s: S1): S2;
39
39
  /**
40
40
  * Runs this computation with the specified initial state, returning the
41
41
  * result and discarding the updated state.
42
42
  * @tsplus fluent fncts.control.Z unsafeRunStateResult
43
43
  * @tsplus location "@fncts/base/control/Z/runtime"
44
44
  */
45
- export declare function unsafeRunStateResult_<W, S1, S2, A>(ma: Z<W, S1, S2, unknown, never, A>, s: S1): A;
45
+ export declare function unsafeRunStateResult_<W, S1, S2, A>(ma: Z<W, S1, S2, never, never, A>, s: S1): A;
46
46
  /**
47
47
  * Runs this computation returning either the result or error
48
48
  * @tsplus getter fncts.control.Z unsafeRunExit
49
49
  * @tsplus location "@fncts/base/control/Z/runtime"
50
50
  */
51
- export declare function unsafeRunExit<E, A>(ma: Z<never, unknown, unknown, unknown, E, A>): Exit<E, A>;
51
+ export declare function unsafeRunExit<E, A>(ma: Z<never, unknown, unknown, never, E, A>): Exit<E, A>;
52
52
  /**
53
53
  * @tsplus getter fncts.control.Z unsafeRunWriter
54
54
  * @tsplus location "@fncts/base/control/Z/runtime"
55
55
  */
56
- export declare function unsafeRunWriter<W, A>(ma: Z<W, unknown, unknown, unknown, never, A>): readonly [Conc<W>, A];
56
+ export declare function unsafeRunWriter<W, A>(ma: Z<W, unknown, unknown, never, never, A>): readonly [Conc<W>, A];
package/control.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export type {} from "./control/Eval.js";
2
+ export type {} from "./control/LazyValue.js";
3
+ export type {} from "./control/Z.js";
@@ -139,3 +139,9 @@ export declare class UnionError extends DecodeError {
139
139
  constructor(label: string, errors: Vector<DecodeError>);
140
140
  render: import("../../control/Eval").Eval<import("../../collection/immutable/RoseTree").RoseTree<string>>;
141
141
  }
142
+ export declare class EmptyError extends DecodeError {
143
+ readonly actual: unknown;
144
+ readonly _tag = "EmptyError";
145
+ constructor(actual: unknown);
146
+ render: import("../../control/Eval").Eval<import("../../collection/immutable/RoseTree").RoseTree<string>>;
147
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
1
  export * from "./DecodeError/definition.js";
2
+ export * from "./DecodeError/instances.js";
@@ -13,12 +13,11 @@ export declare type EnvSymbol = typeof EnvSymbol;
13
13
  * @tsplus companion fncts.EnvironmentOps
14
14
  */
15
15
  export declare class Environment<R> implements Hashable, Equatable {
16
- readonly map: HashMap<Tag<any>, readonly [unknown, number]>;
17
- readonly index: number;
16
+ readonly map: HashMap<Tag<any>, unknown>;
18
17
  cache: HashMap<Tag<any>, unknown>;
19
18
  readonly _typeId: EnvSymbol;
20
19
  readonly [EnvSymbol]: (_: never) => R;
21
- constructor(map: HashMap<Tag<any>, readonly [unknown, number]>, index: number, cache?: HashMap<Tag<any>, unknown>);
20
+ constructor(map: HashMap<Tag<any>, unknown>, cache?: HashMap<Tag<any>, unknown>);
22
21
  get [Symbol.hash](): number;
23
22
  [Symbol.equals](that: unknown): boolean;
24
23
  }
@@ -18,7 +18,7 @@ export interface MaybeF extends HKT {
18
18
  * @tsplus companion fncts.MaybeOps
19
19
  */
20
20
  export declare class Maybe<A> {
21
- readonly _A: () => A;
21
+ _A: () => A;
22
22
  readonly _typeId: MaybeTypdId;
23
23
  }
24
24
  /**
@@ -44,7 +44,9 @@ export declare class Nothing extends Maybe<never> {
44
44
  /**
45
45
  * @tsplus unify fncts.Maybe
46
46
  */
47
- export declare function unifyMaybe<X extends Maybe<any>>(self: X): Maybe<[X] extends [Maybe<infer A>] ? A : never>;
47
+ export declare function unifyMaybe<X extends Maybe<any>>(self: X): Maybe<[X] extends [{
48
+ _A: () => infer A;
49
+ }] ? A : never>;
48
50
  /**
49
51
  * @tsplus static fncts.MaybeOps isMaybe
50
52
  * @tsplus location "@fncts/base/data/Maybe/definition"
@@ -3,4 +3,4 @@ import { Tag } from "@fncts/base/data/Tag/definition";
3
3
  * @tsplus static fncts.TagOps __call
4
4
  * @tsplus location "@fncts/base/data/Tag/constructors"
5
5
  */
6
- export declare function makeTag<T>(): Tag<T>;
6
+ export declare function makeTag<T>(id: string): Tag<T>;
@@ -9,10 +9,11 @@ export declare type TagTypeId = typeof TagTypeId;
9
9
  * @tsplus companion fncts.TagOps
10
10
  */
11
11
  export declare class Tag<in out T> implements Hashable, Equatable {
12
+ readonly id: string;
12
13
  _T: (_: T) => T;
13
14
  readonly _typeId: TagTypeId;
14
15
  private static counter;
15
- readonly id: number;
16
+ constructor(id: string);
16
17
  get [Symbol.hash](): number;
17
18
  [Symbol.equals](that: unknown): boolean;
18
19
  }
@@ -139,7 +139,7 @@ export declare function under_(s: string, f: (chars: Array<string>) => Array<str
139
139
  export declare const under: (f: (chars: Array<string>) => Array<string>) => (s: string) => string;
140
140
  /**
141
141
  * Join newline-separated strings together.
142
- * @tsplus getter fncts.base.ImmutableArray unlines
142
+ * @tsplus getter fncts.ImmutableArray unlines
143
143
  * @tsplus location "@fncts/base/data/string/api"
144
144
  */
145
145
  export declare function unlines(as: ReadonlyArray<string>): string;
package/data.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ export type {} from "./data/bigint.js";
2
+ export type {} from "./data/boolean.js";
3
+ export type {} from "./data/Branded.js";
4
+ export type {} from "./data/Byte.js";
5
+ export type {} from "./data/CaseClass.js";
6
+ export type {} from "./data/Cause.js";
7
+ export type {} from "./data/Const.js";
8
+ export type {} from "./data/DecodeError.js";
9
+ export type {} from "./data/Decoder.js";
10
+ export type {} from "./data/Duration.js";
11
+ export type {} from "./data/Either.js";
12
+ export type {} from "./data/Environment.js";
13
+ export type {} from "./data/exceptions.js";
14
+ export type {} from "./data/ExecutionStrategy.js";
15
+ export type {} from "./data/Exit.js";
16
+ export type {} from "./data/FiberId.js";
17
+ export type {} from "./data/function.js";
18
+ export type {} from "./data/Identity.js";
19
+ export type {} from "./data/Interval.js";
20
+ export type {} from "./data/Intervals.js";
21
+ export type {} from "./data/Maybe.js";
22
+ export type {} from "./data/Newtype.js";
23
+ export type {} from "./data/number.js";
24
+ export type {} from "./data/object.js";
25
+ export type {} from "./data/Patch.js";
26
+ export type {} from "./data/Predicate.js";
27
+ export type {} from "./data/Refinement.js";
28
+ export type {} from "./data/string.js";
29
+ export type {} from "./data/Tag.js";
30
+ export type {} from "./data/These.js";
31
+ export type {} from "./data/Trace.js";
32
+ export type {} from "./data/TraceElement.js";
33
+ export type {} from "./data/Zipped.js";