cab
cab copied to clipboard
Pattern match(es) are non-exhaustive
Hello, compiling this package using ghc 9.2.8 I get following warnings:
[6 of 9] Compiling Doc ( src/Doc.hs, dist/build/cab/cab-tmp/Doc.dyn_o )
src/Doc.hs:23:5: warning: [-Wincomplete-uni-patterns]
Pattern match(es) are non-exhaustive
In a pattern binding: Patterns of type ‘[String]’ not matched: []
|
23 | cmd:_ = commandNames cmdspec
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[7 of 9] Compiling Commands ( src/Commands.hs, dist/build/cab/cab-tmp/Commands.dyn_o )
[8 of 9] Compiling Help ( src/Help.hs, dist/build/cab/cab-tmp/Help.dyn_o )
[9 of 9] Compiling Main ( src/Main.hs, dist/build/cab/cab-tmp/Main.dyn_o )
src/Main.hs:28:9: warning: [-Wincomplete-uni-patterns]
Pattern match(es) are non-exhaustive
In a pattern binding:
Patterns of type ‘ParsedArgs’ not matched: Left _
|
28 | let Right (args,opts0) = pargs
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Main.hs:32:9: warning: [-Wincomplete-uni-patterns]
Pattern match(es) are non-exhaustive
In a pattern binding: Patterns of type ‘[Arg]’ not matched: []
|
32 | act:params = args
| ^^^^^^^^^^^^^^^^^
src/Main.hs:35:9: warning: [-Wincomplete-uni-patterns]
Pattern match(es) are non-exhaustive
In a pattern binding:
Patterns of type ‘Maybe CommandSpec’ not matched: Nothing
|
35 | let Just cmdspec = mcmdspec
| ^^^^^^^^^^^^^^^^^^^^^^^
Linking dist/build/cab/cab ...