Add persistent hints
[p5sagit/Eval-WithLexicals.git] / lib / Eval / WithLexicals / Role / PreludeEachTime.pm
diff --git a/lib/Eval/WithLexicals/Role/PreludeEachTime.pm b/lib/Eval/WithLexicals/Role/PreludeEachTime.pm
new file mode 100644 (file)
index 0000000..4f5981e
--- /dev/null
@@ -0,0 +1,10 @@
+package Eval::WithLexicals::Role::PreludeEachTime;
+use Moo::Role;
+
+around setup_code => sub {
+  my $orig = shift;
+  my($self) = @_;
+  ($self->prelude, $orig->(@_));
+};
+
+1;