package DX::SearchState;
+use Types::Standard qw(Maybe);
use DX::Class;
has current_hypothesis => (is => 'ro', isa => Hypothesis, required => 1);
-has resume_step => (is => 'ro', isa => Step);
+has resume_step => (is => 'ro', isa => Maybe[Step]);
has alternatives => (is => 'ro', isa => AlternativeList, required => 1);
[ $hyp, $alt_step ],
@alt
])
- : ())
+ : ()),
+ resume_step => undef,
);
}
$step = $alt_step;