move dep expansion into predicates for the moment
[scpubgit/DX.git] / lib / DX / Predicate / Eq.pm
index e0b3899..6f1db99 100644 (file)
@@ -1,6 +1,6 @@
 package DX::Predicate::Eq;
 
-use DX::Utils qw(rspace res CONTENTS_OF);
+use DX::Utils qw(rspace res CONTENTS_OF expand_deps);
 use DX::Class;
 
 with 'DX::Role::Predicate';
@@ -8,7 +8,9 @@ with 'DX::Role::Predicate';
 sub _resolution_space_for {
   my ($self, $left, $right) = @_;
 
-  my $deps = [ [ CONTENTS_OF ,=> $left ], [ CONTENTS_OF ,=> $right ] ];
+  my $deps = expand_deps([
+    [ CONTENTS_OF ,=> $left ], [ CONTENTS_OF ,=> $right ]
+  ]);
 
   my $aperture = [ map @{$_->aperture_for_set_value}, $left, $right ];