We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a05c7 commit f8a7d43Copy full SHA for f8a7d43
hackage-security/src/Hackage/Security/TUF/Patterns.hs
@@ -323,9 +323,8 @@ _ex1 = matchDelegation del "A/x/y/z.foo"
323
)
324
325
_ex2 :: Maybe String
326
-_ex2 = matchDelegation del "A/x/y/z.foo"
327
- where
328
- Right del = parseDelegation "A/*/*/*.foo" "B/*/C/*/*.bar"
+_ex2 = either (const Nothing) (`matchDelegation` "A/x/y/z.foo")
+ (parseDelegation "A/*/*/*.foo" "B/*/C/*/*.bar")
329
330
_ex3 :: Either String Delegation
331
_ex3 = parseDelegation "foo" "*/bar"
0 commit comments