~/bend-docscommunity

storage.bend relies on unsafe/foreign

raw source on the hub · import bend-kit-storage@0.8.0.0/storage.bend as Storage

Content-addressed object store: Merkle trees, sync plans, and reachability GC with proved laws. Source: https://github.com/paymog/bend-kit/tree/main/storage

5 imports
import Base
import bend-kit-bytes@0.3.3.1/bytes.bend as Bytes
import bend-kit-files@0.4.0.1/files.bend as Files
import bend-kit-crypto@0.2.2.2/crypto.bend as Crypto
import ./pure.bend as P

Types

type Fetch source · line 298 · raw

Data

One step of Disk.fetch.go.

type Step source · line 497 · raw

Data

Definitions

def Run source · line 10 · raw

@-A:Type -> Type

def Run.pure source · line 13 · raw

@-A:Type -> @x:A -> Run(A)

def Run.fail source · line 16 · raw

@-A:Type -> @e:Pair(U32, String) -> Run(A)

def Run.next source · line 19 · raw

@-A:Type -> @-B:Type -> @r:Result<&1, &1, Pair(U32, String), A> -> @f:(@_:A -> Run(B)) -> Run(B)

def Run.bind source · line 26 · raw

@-A:Type -> @-B:Type -> @m:Run(A) -> @f:(@_:A -> Run(B)) -> Run(B)

def Run.lift source · line 29 · raw

@-A:Type -> @m:IO(A) -> Run(A)

def Run.check source · line 32 · raw

@ok:Bool -> @+why:String -> Run(Unit)

def Run.some source · line 39 · raw

@-A:Data -> @m:Maybe<&2, A> -> @+why:String -> Run(A)

def digest source · line 47 · raw

@b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(0x761d251919847361ad64d3c48d659aff/pure.Digest)

The SHA-256 of b.

def Blob.of.hashed source · line 57 · raw

@+len:U32 -> @buffers:Pair(Array<U32>, Pair(U32, Array<U32>)) -> 0x761d251919847361ad64d3c48d659aff/pure.Blob

def Blob.of source · line 62 · raw

@b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(0x761d251919847361ad64d3c48d659aff/pure.Blob)

Hashes the packed input before it becomes a reusable word list.

def Blob.string source · line 68 · raw

@s:String -> Run(0x761d251919847361ad64d3c48d659aff/pure.Blob)

def object.digest source · line 71 · raw

@o:0x761d251919847361ad64d3c48d659aff/pure.Obj<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> Run(0x761d251919847361ad64d3c48d659aff/pure.Digest)

def decode.two source · line 80 · raw

@bb:Pair(0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes, 0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes) -> Run(Maybe<&2, 0x761d251919847361ad64d3c48d659aff/pure.Obj<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>>)

def decode source · line 87 · raw

@b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(Maybe<&2, 0x761d251919847361ad64d3c48d659aff/pure.Obj<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>>)

The object that encode wrote, or None for any other octets.

def commit.done source · line 90 · raw

@+d:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @o:0x761d251919847361ad64d3c48d659aff/pure.Obj<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> @xs:0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> Run(Pair(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>))

def commit.node source · line 93 · raw

@+o:0x761d251919847361ad64d3c48d659aff/pure.Obj<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> @xs:0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> Run(Pair(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>))

def commit.item source · line 98 · raw

@+n:String -> @c:Pair(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>) -> @r:Pair(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>) -> Run(Pair(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>))

def commit source · line 106 · raw

@t:0x761d251919847361ad64d3c48d659aff/pure.Tree<0x761d251919847361ad64d3c48d659aff/pure.Blob> -> Run(Pair(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>))

hash and objects with H = SHA-256 of encode: the root digest and the objects, children first.

def receive.two source · line 118 · raw

@+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> @+claimed:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @bb:Pair(0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes, 0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

def receive source · line 126 · raw

@+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> @+claimed:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

Ingress: the store with the object that b encodes. Fails when b does not decode or its SHA-256 is not claimed.

def Disk.object source · line 131 · raw

@+dir:String -> @+d:0x761d251919847361ad64d3c48d659aff/pure.Digest -> String

def Disk.init source · line 134 · raw

@+dir:String -> Run(Unit)

def write.close source · line 140 · raw

@r:Pair(File, Result<&1, &1, Pair(U32, String), Unit>) -> Run(Unit)

def write.file source · line 147 · raw

@+path:String -> @b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(Unit)

def write.cleanup source · line 157 · raw

@+tmp:String -> @r:Result<&1, &1, Pair(U32, String), Unit> -> Run(Unit)

def write.publish source · line 166 · raw

@r:Result<&1, &1, Pair(U32, String), Unit> -> @+tmp:String -> @path:String -> Run(Unit)

def write.opened source · line 175 · raw

@pair:Pair(String, File) -> @path:String -> @b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(Unit)

def write source · line 183 · raw

@+dir:String -> @name:String -> @path:String -> @b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(Unit)

Each write owns its exclusively created temporary file until publication or cleanup.

def read.chunk source · line 188 · raw

@r:Pair(File, Result<&1, &1, Pair(U32, String), 0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes>) -> Run(Pair(File, 0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes))

def read.piece source · line 197 · raw

@f:File -> Run(Pair(File, 0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes))

def read.go source · line 201 · raw

@n:Nat -> @fb:Pair(File, 0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes) -> @acc:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes)

n more reads of up to 1 MiB each; fb holds the file and the last piece.

def read.check source · line 212 · raw

@+size:U32 -> @b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes)

def info.size source · line 218 · raw

@i:0x5fea041be86f1677bfed779e7579233f/files.Info -> Run(U32)

def read.sized source · line 224 · raw

@+path:String -> @+size:U32 -> Run(0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes)

def read source · line 231 · raw

@+path:String -> Run(0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes)

The whole file at path.

def Disk.put.if source · line 238 · raw

@there:Bool -> @+dir:String -> @+d:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @+path:String -> @b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(Unit)

def Disk.put source · line 246 · raw

@+dir:String -> @+d:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(Unit)

Writes the encoded object under its digest unless the file exists. Objects never change.

def Disk.save source · line 252 · raw

@+dir:String -> @xs:0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> Run(Unit)

def Disk.receive.two source · line 262 · raw

@+dir:String -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> @+claimed:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @bb:Pair(0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes, 0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

Ingress into the store at dir: receive, then write the octets under their digest.

def Disk.receive source · line 269 · raw

@+dir:String -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> @+claimed:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @b:0xec25e4adfb02e59e4b817801115988ee/bytes.Bytes -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

def Disk.load.one source · line 273 · raw

@+dir:String -> @+n:String -> @m:Maybe<&2, 0x761d251919847361ad64d3c48d659aff/pure.Digest> -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

The object in file objects/n, checked against the digest that n names.

def Disk.load.go source · line 282 · raw

@+dir:String -> @names:List<&2, String> -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

def Disk.load source · line 292 · raw

@+dir:String -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

Every object at dir, each checked against its file name. A tampered or undecodable object fails the load.

def Disk.fetch.go source · line 307 · raw

@fuel:Nat -> @+dir:String -> @step:Fetch -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

Adds to s every object that a Want reaches at dir, each read and checked through receive once. A missing object is left out, so a load of the root then fails.

def fetch.fuel source · line 334 · raw

Nat

Five steps per level, so a fetch goes as deep as a load with limit().

def Disk.fetch source · line 338 · raw

@+dir:String -> @+root:0x761d251919847361ad64d3c48d659aff/pure.Digest -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

The index of the objects that root reaches at dir. Other objects are not read.

def Disk.fetch.all source · line 341 · raw

@+dir:String -> @roots:List<&2, 0x761d251919847361ad64d3c48d659aff/pure.Digest> -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

def Disk.probe.one source · line 350 · raw

@there:Bool -> @+dir:String -> @+d:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

def Disk.probe source · line 360 · raw

@+dir:String -> @xs:0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob))

Adds to s the objects of xs that dir holds, each read and checked. Other objects are not read.

def Disk.set_root source · line 370 · raw

@+dir:String -> @+name:String -> @+d:0x761d251919847361ad64d3c48d659aff/pure.Digest -> Run(Unit)

def Disk.root source · line 375 · raw

@+dir:String -> @+name:String -> Run(0x761d251919847361ad64d3c48d659aff/pure.Digest)

def Disk.roots.go source · line 380 · raw

@+dir:String -> @names:List<&2, String> -> Run(List<&2, 0x761d251919847361ad64d3c48d659aff/pure.Digest>)

def Disk.roots source · line 391 · raw

@+dir:String -> Run(List<&2, 0x761d251919847361ad64d3c48d659aff/pure.Digest>)

The digest of every named root.

def Disk.drop.one source · line 396 · raw

@live:Bool -> @+dir:String -> @+d:0x761d251919847361ad64d3c48d659aff/pure.Digest -> Run(U32)

def Disk.drop source · line 405 · raw

@+dir:String -> @ds:List<&2, 0x761d251919847361ad64d3c48d659aff/pure.Digest> -> @+live:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> @+n:U32 -> Run(U32)

def Disk.collect.of source · line 415 · raw

@+dir:String -> @+retained:List<&2, 0x761d251919847361ad64d3c48d659aff/pure.Digest> -> @+s:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(U32)

Drops what gc drops: an object stays exactly when its digest is in the live set.

def Disk.collect source · line 424 · raw

@+dir:String -> @+retained:List<&2, 0x761d251919847361ad64d3c48d659aff/pure.Digest> -> Run(U32)

Deletes every object that no retained root reaches and answers how many it deleted. Fails, and deletes nothing, when a retained root does not load. It reads only the objects the roots reach. No writer may run during the collection.

def Disk.clean_tmp.go source · line 429 · raw

@+dir:String -> @names:List<&2, String> -> @+n:U32 -> Run(U32)

def Disk.clean_tmp source · line 439 · raw

@+dir:String -> Run(U32)

No writer may run during maintenance; the caller must hold the store exclusively.

def sync.send source · line 444 · raw

@+dir:String -> @ys:0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> @+dst:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> @+n:U32 -> Run(U32)

def sync.of source · line 453 · raw

@+dst:String -> @+root:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @+a:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> @+b:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(U32)

def sync.probe source · line 459 · raw

@+dst:String -> @+root:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @+a:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> @+ys:0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob> -> Run(U32)

b holds the objects of the closure ys that dst has, so plan sees what a full load of dst would show it.

def sync.from source · line 464 · raw

@+dst:String -> @+root:0x761d251919847361ad64d3c48d659aff/pure.Digest -> @+a:0x761d251919847361ad64d3c48d659aff/pure.Index(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob) -> Run(U32)

def sync source · line 471 · raw

@+src:String -> @+dst:String -> @+root:0x761d251919847361ad64d3c48d659aff/pure.Digest -> Run(U32)

Sends dst every object it needs to load root as src does, through ingress. Answers how many it sent. It reads the objects root reaches in src, and only those of them that dst holds.

def Disk.checkout source · line 478 · raw

@+dir:String -> @+root:0x761d251919847361ad64d3c48d659aff/pure.Digest -> Run(0x761d251919847361ad64d3c48d659aff/pure.Tree<0x761d251919847361ad64d3c48d659aff/pure.Blob>)

The tree under root at dir. Fails when an object is missing or tampered, or the tree is too deep. It reads only the objects root reaches.

def Disk.commit.save source · line 483 · raw

@+dir:String -> @r:Pair(0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Store<0x761d251919847361ad64d3c48d659aff/pure.Digest, 0x761d251919847361ad64d3c48d659aff/pure.Blob>) -> Run(0x761d251919847361ad64d3c48d659aff/pure.Digest)

def Disk.commit source · line 490 · raw

@+dir:String -> @t:0x761d251919847361ad64d3c48d659aff/pure.Tree<0x761d251919847361ad64d3c48d659aff/pure.Blob> -> Run(0x761d251919847361ad64d3c48d659aff/pure.Digest)

Commits t to the store at dir and answers its root digest.

def snap source · line 503 · raw

@fuel:Nat -> @+path:String -> @step:Step -> Run(0x761d251919847361ad64d3c48d659aff/pure.Tree<0x761d251919847361ad64d3c48d659aff/pure.Blob>)

The tree at path. Regular files become TFile and directories become TItem chains in name order.

def snapshot source · line 527 · raw

@+path:String -> Run(0x761d251919847361ad64d3c48d659aff/pure.Tree<0x761d251919847361ad64d3c48d659aff/pure.Blob>)

def restore.go source · line 531 · raw

@t:0x761d251919847361ad64d3c48d659aff/pure.Tree<0x761d251919847361ad64d3c48d659aff/pure.Blob> -> @+path:String -> @chain:Bool -> Run(Unit)

Writes t at path. chain is True when t is the rest of the listing of directory path.

def restore source · line 554 · raw

@t:0x761d251919847361ad64d3c48d659aff/pure.Tree<0x761d251919847361ad64d3c48d659aff/pure.Blob> -> @+path:String -> Run(Unit)

Writes t as a new file or directory at path. Fails if path exists.

Effects (foreign code)

effect Blob.hash.words source · line 53 · raw

@len:U32 -> @raw:Array<U32> -> IO(Result<&1, &1, Pair(U32, String), Pair(Array<U32>, Pair(U32, Array<U32>))>)

foreign: effs/storage.c, effs/storage.js

effect write.temp source · line 153 · raw

@prefix:String -> IO(Result<&1, &1, Pair(U32, String), Pair(String, File)>)

foreign: effs/storage.c, effs/storage.js