ordinary_checked_condition.bend checks
raw source on the hub · import 0x67fd5084c1da4adc13317822045bb11f/ordinary_checked_condition.bend as Ordinary_checked_condition
5 imports
import Base import ./ordinary_condition_composition.bend as Old import ./ordinary_check_declaration.bend as D import ./world.bend as W import ./check.bend as K
Types
type Shape source · line 7 · raw
Data
Existing@description:0x67fd5084c1da4adc13317822045bb11f/ordinary_condition_composition.Description -> Shape
Check@name:String -> Shape
Constant@value:Bool -> Shape
Not@inner:Shape -> Shape
And@left:Shape -> @right:Shape -> Shape
Or@left:Shape -> @right:Shape -> Shape
type Description source · line 14 · raw
Data
Description@shape:Shape -> @uses:List<&2, 0x67fd5084c1da4adc13317822045bb11f/ordinary_check_declaration.Use> -> Description
type Error source · line 15 · raw
Data
CheckError@error:0x67fd5084c1da4adc13317822045bb11f/check.Error -> Error
NoValueError
InvalidRegistrationError
NoBindingError
type Evaluation source · line 20 · raw
@World:Type -> @Owner:Type -> Type
Evaluation@World:Type -> @Owner:Type -> @world:World -> @owner:Owner -> @result:Result<&2, &2, Error, Bool> -> Evaluation<World, Owner>
type Condition source · line 22 · raw
@World:Type -> @Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> Evaluation<World, Owner>) -> Type
Condition@World:Type -> @Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> Evaluation<World, Owner>) -> @owner:Owner -> @description:Description -> Condition<World, Owner, evaluate>
type Returned source · line 24 · raw
@World:Type -> @Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> Evaluation<World, Owner>) -> Type
Returned@World:Type -> @Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> Evaluation<World, Owner>) -> @world:World -> @condition:Condition<World, Owner, evaluate> -> @result:Result<&2, &2, Error, Bool> -> Returned<World, Owner, evaluate>
Definitions
def check_result source · line 26 · raw
@value:Result<&2, &2, 0x67fd5084c1da4adc13317822045bb11f/check.Error, Bool> -> Result<&2, &2, Error, Bool>
def negate source · line 58 · raw
@value:Result<&2, &2, Error, Bool> -> Result<&2, &2, Error, Bool>
def same_bool source · line 76 · raw
@a:Bool -> @b:Bool -> Bool
Templates
template lifted_returned source · line 30 · raw
@-World:Type -> @-Owner:Type -> @value:0x67fd5084c1da4adc13317822045bb11f/ordinary_condition_composition.Evaluation<World, Owner> -> Evaluation<World, Owner>
template lift_run source · line 36 · raw
@-World:Type -> @-Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> 0x67fd5084c1da4adc13317822045bb11f/ordinary_condition_composition.Evaluation<World, Owner>) -> @owner:Owner -> @world:World -> Evaluation<World, Owner>
template lift source · line 37 · raw
@-World:Type -> @-Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> 0x67fd5084c1da4adc13317822045bb11f/ordinary_condition_composition.Evaluation<World, Owner>) -> @value:0x67fd5084c1da4adc13317822045bb11f/ordinary_condition_composition.Condition<World, Owner, evaluate> -> Condition<World, Owner, lift_run(World, Owner, evaluate)>
template check_returned source · line 40 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Args:Data -> @args:Args -> @value:0x67fd5084c1da4adc13317822045bb11f/check.Checked<S, C, R, E> -> Evaluation<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Args>
template check_run source · line 45 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-Args:Data -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:Args -> @_:H -> Pair(H, Bool)) -> @-declaration:0x67fd5084c1da4adc13317822045bb11f/ordinary_check_declaration.Declaration<S, C, R, E, Ops> -> @args:Args -> @world:0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E> -> Evaluation<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Args>
template check source · line 47 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Type -> Type) -> @-Args:Data -> @-body:(@-H:Type -> @-caps:Ops(H) -> @_:Args -> @_:H -> Pair(H, Bool)) -> @-declaration:0x67fd5084c1da4adc13317822045bb11f/ordinary_check_declaration.Declaration<S, C, R, E, Ops> -> @name:String -> @args:Args -> Condition<0x67fd5084c1da4adc13317822045bb11f/world.World<S, C, R, E>, Args, check_run(S, C, R, E, Ops, Args, body, declaration)>
template constant_run source · line 50 · raw
@-World:Type -> @value:Bool -> @world:World -> Evaluation<World, Bool>
template constant source · line 51 · raw
@-World:Type -> @+value:Bool -> Condition<World, Bool, constant_run(World)>
template returned source · line 52 · raw
@-World:Type -> @-Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> Evaluation<World, Owner>) -> @description:Description -> @value:Evaluation<World, Owner> -> Returned<World, Owner, evaluate>
template run source · line 55 · raw
@-World:Type -> @-Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> Evaluation<World, Owner>) -> @value:Condition<World, Owner, evaluate> -> @world:World -> Returned<World, Owner, evaluate>
template negated source · line 62 · raw
@-World:Type -> @-Owner:Type -> @value:Evaluation<World, Owner> -> Evaluation<World, Owner>
template not_run source · line 65 · raw
@-World:Type -> @-Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> Evaluation<World, Owner>) -> @owner:Owner -> @world:World -> Evaluation<World, Owner>
template not source · line 66 · raw
@-World:Type -> @-Owner:Type -> @-evaluate:(@_:Owner -> @_:World -> Evaluation<World, Owner>) -> @value:Condition<World, Owner, evaluate> -> Condition<World, Owner, not_run(World, Owner, evaluate)>
template right_returned source · line 69 · raw
@-World:Type -> @-Left:Type -> @-Right:Type -> @left:Left -> @value:Evaluation<World, Right> -> Evaluation<World, Pair(Left, Right)>
template selected source · line 72 · raw
@-World:Type -> @-Left:Type -> @-Right:Type -> @-right_run:(@_:Right -> @_:World -> Evaluation<World, Right>) -> @allowed:Bool -> @left:Left -> @right:Right -> @world:World -> @+value:Bool -> Evaluation<World, Pair(Left, Right)>
template left_returned source · line 81 · raw
@-World:Type -> @-Left:Type -> @-Right:Type -> @-right_run:(@_:Right -> @_:World -> Evaluation<World, Right>) -> @on:Bool -> @right:Right -> @value:Evaluation<World, Left> -> Evaluation<World, Pair(Left, Right)>
template combined_run source · line 85 · raw
@-World:Type -> @-Left:Type -> @-Right:Type -> @-left_run:(@_:Left -> @_:World -> Evaluation<World, Left>) -> @-right_run:(@_:Right -> @_:World -> Evaluation<World, Right>) -> @-on:Bool -> @owners:Pair(Left, Right) -> @world:World -> Evaluation<World, Pair(Left, Right)>
template and_then source · line 88 · raw
@-World:Type -> @-Left:Type -> @-Right:Type -> @-left_run:(@_:Left -> @_:World -> Evaluation<World, Left>) -> @-right_run:(@_:Right -> @_:World -> Evaluation<World, Right>) -> @left:Condition<World, Left, left_run> -> @right:Condition<World, Right, right_run> -> Condition<World, Pair(Left, Right), combined_run(World, Left, Right, left_run, right_run, True{})>
template or_else source · line 91 · raw
@-World:Type -> @-Left:Type -> @-Right:Type -> @-left_run:(@_:Left -> @_:World -> Evaluation<World, Left>) -> @-right_run:(@_:Right -> @_:World -> Evaluation<World, Right>) -> @left:Condition<World, Left, left_run> -> @right:Condition<World, Right, right_run> -> Condition<World, Pair(Left, Right), combined_run(World, Left, Right, left_run, right_run, False{})>