~/bend-docscommunity

bundle_construction.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.7/bundle_construction.bend as Bundle_construction

2 imports
import Base
import bundle_pack.bend as B

Types

type Construction source · line 6 · raw

@Raw:Type -> @Cooked:Type -> @Error:Data -> Type

Experimental reversible constructor RESULT receipts, not a universal Raw->C inverse or production Decode policy. Only the trusted author supplies undo.

type Staged source · line 9 · raw

@Context:Type -> @Raw:Type -> @Cooked:Type -> @Error:Data -> Type

Templates

template undo_pack source · line 12 · raw

@-HR:Type -> @-HC:Type -> @-TR:Type -> @-TC:Type -> @headUndo:(@_:HC -> HR) -> @tailUndo:(@_:TC -> TR) -> @cooked:0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HC, TC> -> 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HR, TR>

template constructed_tail source · line 15 · raw

@-Ctx:Type -> @-HR:Type -> @-HC:Type -> @-TR:Type -> @-TC:Type -> @-Error:Data -> @head:HC -> @headUndo:(@_:HC -> HR) -> @tail:Staged<Ctx, TR, TC, Error> -> Staged<Ctx, 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HR, TR>, 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HC, TC>, Error>

template invalid_tail source · line 19 · raw

@-Ctx:Type -> @-HR:Type -> @-HC:Type -> @-TR:Type -> @-TC:Type -> @-Error:Data -> @head:HR -> @error:Error -> @tail:Staged<Ctx, TR, TC, Error> -> Staged<Ctx, 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HR, TR>, 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HC, TC>, Error>

template constructed_head source · line 23 · raw

@-Ctx:Type -> @-HR:Type -> @-HC:Type -> @-TR:Type -> @-TC:Type -> @-Error:Data -> @-stageTail:(@_:Ctx -> @_:TR -> Staged<Ctx, TR, TC, Error>) -> @tail:TR -> @observed:Pair(Ctx, Construction<HR, HC, Error>) -> Staged<Ctx, 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HR, TR>, 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HC, TC>, Error>

template stage source · line 27 · raw

@-Ctx:Type -> @-HR:Type -> @-HC:Type -> @-TR:Type -> @-TC:Type -> @-Error:Data -> @-constructHead:(@_:Ctx -> @_:HR -> Pair(Ctx, Construction<HR, HC, Error>)) -> @-stageTail:(@_:Ctx -> @_:TR -> Staged<Ctx, TR, TC, Error>) -> @ctx:Ctx -> @raw:0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HR, TR> -> Staged<Ctx, 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HR, TR>, 0x7e321819d0ff210531780719c7674cef/bundle_pack.Pack<HC, TC>, Error>

template terminal source · line 30 · raw

@-Ctx:Type -> @-Error:Data -> @ctx:Ctx -> @raw:Unit -> Staged<Ctx, Unit, Unit, Error>