Deep wildcards #32

This commit is contained in:
Michael Snoyman 2014-04-08 18:20:11 +03:00
parent fcd9c167b3
commit cb50d581c0

View File

@ -224,7 +224,7 @@ lookupTree [] _ = Nothing
lookupTree _ EmptyLabelMap = Nothing lookupTree _ EmptyLabelMap = Nothing
lookupTree [l] (Static t) = Map.lookup l t >>= getPortEntry lookupTree [l] (Static t) = Map.lookup l t >>= getPortEntry
lookupTree [_] (Wildcard w) = getPortEntry $ w lookupTree (_:_) (Wildcard w) = getPortEntry $ w
lookupTree [l] (WildcardExcept w t) = lookupTree [l] (WildcardExcept w t) =
case Map.lookup l t >>= getPortEntry of case Map.lookup l t >>= getPortEntry of
Just e -> Just e Just e -> Just e