mirror of
https://github.com/snoyberg/keter.git
synced 2024-12-11 19:57:29 +03:00
Deep wildcards #32
This commit is contained in:
parent
fcd9c167b3
commit
cb50d581c0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user