Skip to content

Commit 3486f36

Browse files
committed
Satisfy -Wincomplete-uni-patterns with splitExtension
1 parent f8a7d43 commit 3486f36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ matchPattern = go . splitDirectories
126126
go [] _ = Nothing
127127
go [f] (PatFileConst f') = do guard (f == f')
128128
return ()
129-
go [f] (PatFileExt e') = do let (bn, _:e) = splitExtension f
130-
guard $ e == e'
129+
go [f] (PatFileExt e') = do let (bn, dotExt) = splitExtension f
130+
guard $ dotExt == '.':e'
131131
return (bn :- ())
132132
go [_] _ = Nothing
133133
go (d:p) (PatDirConst d' p') = do guard (d == d')

0 commit comments

Comments
 (0)