Skip to content

Commit f8a7d43

Browse files
committed
Satisfy -Wincomplete-uni-patterns with _ex2
1 parent 07a05c7 commit f8a7d43

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hackage-security/src/Hackage/Security/TUF/Patterns.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,8 @@ _ex1 = matchDelegation del "A/x/y/z.foo"
323323
)
324324

325325
_ex2 :: Maybe String
326-
_ex2 = matchDelegation del "A/x/y/z.foo"
327-
where
328-
Right del = parseDelegation "A/*/*/*.foo" "B/*/C/*/*.bar"
326+
_ex2 = either (const Nothing) (`matchDelegation` "A/x/y/z.foo")
327+
(parseDelegation "A/*/*/*.foo" "B/*/C/*/*.bar")
329328

330329
_ex3 :: Either String Delegation
331330
_ex3 = parseDelegation "foo" "*/bar"

0 commit comments

Comments
 (0)