Running phase: setupCompilerEnvironmentPhase Build with /nix/store/12v031a5kz660m18hz34jc9c3afw62dh-ghc-9.10.3. Running phase: unpackPhase unpacking source archive /nix/store/ibgaai69wjx9k7l9xh1y1fax7rb6q11g-cmdargs-0.10.22.tar.gz source root is cmdargs-0.10.22 setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file "cmdargs-0.10.22/System/Console/CmdArgs/Verbosity.hs" Running phase: patchPhase Running phase: compileBuildDriverPhase setupCompileFlags: -package-db=/build/tmp.UfJDA6Qt0o/setup-package.conf.d -threaded [1 of 2] Compiling Main ( Setup.hs, /build/tmp.UfJDA6Qt0o/Main.o ) [2 of 2] Linking Setup Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase configureFlags: --verbose --prefix=/nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/nix/store/29hk0x17i7n8nqgzhjsrhkqw5myhzq2d-cmdargs-0.10.22-doc/share/doc/cmdargs-0.10.22 --with-gcc=gcc --package-db=/build/tmp.UfJDA6Qt0o/package.conf.d --ghc-option=-j4 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping --ghc-option=-haddock --extra-lib-dirs=/nix/store/ddranxbikfg4jkf3n1m0a0h9qqxj1vf0-ncurses-6.5/lib --extra-lib-dirs=/nix/store/1dbmy70xgzs19kafsdcgliwxdpvq46a8-libffi-3.5.2/lib --extra-lib-dirs=/nix/store/m8ya8crfzg99mg0acfqznh7xjxw77hji-elfutils-0.194/lib --extra-lib-dirs=/nix/store/2qzc0x9nm5nwq83svddaybwx806pnlws-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/jm5r6v1x2vyvk2asbkbz5p5clr471h7l-numactl-2.0.18/lib Using Parsec parser Configuring cmdargs-0.10.22... Flags chosen: quotation=True, testprog=False Dependency base >=4.4 && <5: using base-4.20.2.0 Dependency filepath: using filepath-1.5.4.0 Dependency process >=1.0: using process-1.6.26.1 Dependency template-haskell: using template-haskell-2.22.0.0 Dependency transformers >=0.2: using transformers-0.6.1.1 Source component graph: component lib Configured component graph: component cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI include base-4.20.2.0-d831 include filepath-1.5.4.0-6ad8 include process-1.6.26.1-acf9 include template-haskell-2.22.0.0-f550 include transformers-0.6.1.1-5724 Linked component graph: unit cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI include base-4.20.2.0-d831 include filepath-1.5.4.0-6ad8 include process-1.6.26.1-acf9 include template-haskell-2.22.0.0-f550 include transformers-0.6.1.1-5724 System.Console.CmdArgs=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs,System.Console.CmdArgs.Annotate=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.Annotate,System.Console.CmdArgs.Default=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.Default,System.Console.CmdArgs.Explicit=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.Explicit,System.Console.CmdArgs.GetOpt=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.GetOpt,System.Console.CmdArgs.Helper=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.Helper,System.Console.CmdArgs.Implicit=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.Implicit,System.Console.CmdArgs.Quote=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.Quote,System.Console.CmdArgs.Text=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.Text,System.Console.CmdArgs.Verbosity=cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI:System.Console.CmdArgs.Verbosity Ready component graph: definite cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI depends base-4.20.2.0-d831 depends filepath-1.5.4.0-6ad8 depends process-1.6.26.1-acf9 depends template-haskell-2.22.0.0-f550 depends transformers-0.6.1.1-5724 Using Cabal-3.12.1.0 compiled by ghc-9.10 Using compiler: ghc-9.10.3 Using install prefix: /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22 Executables installed in: /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/bin Libraries installed in: /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-3209/cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI Dynamic Libraries installed in: /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-3209 Private executables installed in: /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/libexec/x86_64-linux-ghc-9.10.3-3209/cmdargs-0.10.22 Data files installed in: /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/share/x86_64-linux-ghc-9.10.3-3209/cmdargs-0.10.22 Documentation installed in: /nix/store/29hk0x17i7n8nqgzhjsrhkqw5myhzq2d-cmdargs-0.10.22-doc/share/doc/cmdargs-0.10.22 Configuration files installed in: /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/etc No alex found Using ar found on system at: /nix/store/dwiyp91lmxq864plaas14jm14m87sg3f-binutils-wrapper-2.44/bin/ar No c2hs found No cpphs found No doctest found Using gcc version 15.2.0 given by user at: /nix/store/r9wbjib6xxjkyb9yvjvrkl4sq61i2lyn-gcc-wrapper-15.2.0/bin/gcc Using ghc version 9.10.3 found on system at: /nix/store/12v031a5kz660m18hz34jc9c3afw62dh-ghc-9.10.3/bin/ghc Using ghc-pkg version 9.10.3 found on system at: /nix/store/12v031a5kz660m18hz34jc9c3afw62dh-ghc-9.10.3/bin/ghc-pkg-9.10.3 No ghcjs found No ghcjs-pkg found No greencard found Using haddock version 2.31.1 found on system at: /nix/store/12v031a5kz660m18hz34jc9c3afw62dh-ghc-9.10.3/bin/haddock-ghc-9.10.3 No happy found Using haskell-suite found on system at: haskell-suite-dummy-location Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location No hmake found Using hpc version 0.69 found on system at: /nix/store/12v031a5kz660m18hz34jc9c3afw62dh-ghc-9.10.3/bin/hpc-ghc-9.10.3 Using hsc2hs version 0.68.10 found on system at: /nix/store/12v031a5kz660m18hz34jc9c3afw62dh-ghc-9.10.3/bin/hsc2hs-ghc-9.10.3 Using hscolour version 1.25 found on system at: /nix/store/kn5wlccirrw699lcac18zynbdfdzpv9b-hscolour-1.25/bin/HsColour No jhc found Using ld found on system at: /nix/store/r9wbjib6xxjkyb9yvjvrkl4sq61i2lyn-gcc-wrapper-15.2.0/bin/ld No pkg-config found Using runghc version 9.10.3 found on system at: /nix/store/12v031a5kz660m18hz34jc9c3afw62dh-ghc-9.10.3/bin/runghc-9.10.3 Using strip version 2.44 found on system at: /nix/store/r9wbjib6xxjkyb9yvjvrkl4sq61i2lyn-gcc-wrapper-15.2.0/bin/strip Using tar found on system at: /nix/store/k1lcfin159706lihwx5hhvl80dbij4jw-gnutar-1.35/bin/tar No uhc found Running phase: buildPhase Preprocessing library for cmdargs-0.10.22... Building library for cmdargs-0.10.22... [ 1 of 25] Compiling Data.Generics.Any ( Data/Generics/Any.hs, dist/build/Data/Generics/Any.o, dist/build/Data/Generics/Any.dyn_o ) Data/Generics/Any.hs:21:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 21 | where y = init $ tail x | ^^^^ Data/Generics/Any.hs:102:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 102 | put $ tail cs | ^^^^ Data/Generics/Any.hs:103:45: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 103 | return $ fromAny $ head cs | ^^^^ [ 2 of 25] Compiling Data.Generics.Any.Prelude ( Data/Generics/Any/Prelude.hs, dist/build/Data/Generics/Any/Prelude.o, dist/build/Data/Generics/Any/Prelude.dyn_o ) [ 3 of 25] Compiling System.Console.CmdArgs.Annotate ( System/Console/CmdArgs/Annotate.hs, dist/build/System/Console/CmdArgs/Annotate.o, dist/build/System/Console/CmdArgs/Annotate.dyn_o ) System/Console/CmdArgs/Annotate.hs:81:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 81 | return $ head $ | ^^^^ System/Console/CmdArgs/Annotate.hs:148:14: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 148 | return $ head xs | ^^^^ [ 4 of 25] Compiling System.Console.CmdArgs.Default ( System/Console/CmdArgs/Default.hs, dist/build/System/Console/CmdArgs/Default.o, dist/build/System/Console/CmdArgs/Default.dyn_o ) [ 5 of 25] Compiling System.Console.CmdArgs.Explicit.ExpandArgsAt ( System/Console/CmdArgs/Explicit/ExpandArgsAt.hs, dist/build/System/Console/CmdArgs/Explicit/ExpandArgsAt.o, dist/build/System/Console/CmdArgs/Explicit/ExpandArgsAt.dyn_o ) [ 6 of 25] Compiling System.Console.CmdArgs.Explicit.SplitJoin ( System/Console/CmdArgs/Explicit/SplitJoin.hs, dist/build/System/Console/CmdArgs/Explicit/SplitJoin.o, dist/build/System/Console/CmdArgs/Explicit/SplitJoin.dyn_o ) [ 7 of 25] Compiling System.Console.CmdArgs.Explicit.Type ( System/Console/CmdArgs/Explicit/Type.hs, dist/build/System/Console/CmdArgs/Explicit/Type.o, dist/build/System/Console/CmdArgs/Explicit/Type.dyn_o ) [ 8 of 25] Compiling System.Console.CmdArgs.Explicit.Process ( System/Console/CmdArgs/Explicit/Process.hs, dist/build/System/Console/CmdArgs/Explicit/Process.o, dist/build/System/Console/CmdArgs/Explicit/Process.dyn_o ) System/Console/CmdArgs/Explicit/Process.hs:74:44: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 74 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:74:72: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 74 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:75:61: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 75 | | otherwise -> upd s $ flagValue flag $ tail b | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:77:55: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 77 | | otherwise -> upd s $ flagValue flag $ tail b | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:91:46: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:91:74: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:92:99: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 92 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:94:101: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 94 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:95:87: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 95 | FlagOptRare x | "=" `isPrefixOf` xs -> upd s_{args=ys} $ flagValue flag $ tail xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:149:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 149 | match op = [(head ys,v) | (xs,v) <- names, let ys = filter (op value) xs, ys /= []] | ^^^^ [ 9 of 25] Compiling System.Console.CmdArgs.Explicit.Complete ( System/Console/CmdArgs/Explicit/Complete.hs, dist/build/System/Console/CmdArgs/Explicit/Complete.o, dist/build/System/Console/CmdArgs/Explicit/Complete.dyn_o ) System/Console/CmdArgs/Explicit/Complete.hs:52:15: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 52 | now = head $ next ++ [""] | ^^^^ [10 of 25] Compiling System.Console.CmdArgs.Helper ( System/Console/CmdArgs/Helper.hs, dist/build/System/Console/CmdArgs/Helper.o, dist/build/System/Console/CmdArgs/Helper.dyn_o ) [11 of 25] Compiling System.Console.CmdArgs.Implicit.Ann ( System/Console/CmdArgs/Implicit/Ann.hs, dist/build/System/Console/CmdArgs/Implicit/Ann.o, dist/build/System/Console/CmdArgs/Implicit/Ann.dyn_o ) [12 of 25] Compiling System.Console.CmdArgs.Implicit.UI ( System/Console/CmdArgs/Implicit/UI.hs, dist/build/System/Console/CmdArgs/Implicit/UI.o, dist/build/System/Console/CmdArgs/Implicit/UI.dyn_o ) [13 of 25] Compiling System.Console.CmdArgs.Text ( System/Console/CmdArgs/Text.hs, dist/build/System/Console/CmdArgs/Text.o, dist/build/System/Console/CmdArgs/Text.dyn_o ) System/Console/CmdArgs/Text.hs:91:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | cs = map (\x -> (fst $ head x, map maximum $ transpose $ map snd x)) $ | ^^^^ [14 of 25] Compiling System.Console.CmdArgs.Explicit.Help ( System/Console/CmdArgs/Explicit/Help.hs, dist/build/System/Console/CmdArgs/Explicit/Help.o, dist/build/System/Console/CmdArgs/Explicit/Help.dyn_o ) System/Console/CmdArgs/Explicit/Help.hs:83:59: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 83 | helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"] | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:84:57: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 84 | helpText pre HelpFormatZsh x = map Line $ completeZsh $ head $ modeNames x ++ ["unknown"] | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:154:46: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 154 | add x y = if null x then x else (head x ++ y) : tail x | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:154:61: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 154 | add x y = if null x then x else (head x ++ y) : tail x | ^^^^ [15 of 25] Compiling System.Console.CmdArgs.Verbosity ( System/Console/CmdArgs/Verbosity.hs, dist/build/System/Console/CmdArgs/Verbosity.o, dist/build/System/Console/CmdArgs/Verbosity.dyn_o ) [16 of 25] Compiling System.Console.CmdArgs.Implicit.Type ( System/Console/CmdArgs/Implicit/Type.hs, dist/build/System/Console/CmdArgs/Implicit/Type.o, dist/build/System/Console/CmdArgs/Implicit/Type.dyn_o ) [17 of 25] Compiling System.Console.CmdArgs.Explicit ( System/Console/CmdArgs/Explicit.hs, dist/build/System/Console/CmdArgs/Explicit.o, dist/build/System/Console/CmdArgs/Explicit.dyn_o ) System/Console/CmdArgs/Explicit.hs:112:79: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 112 | let var = mplus (lookup ("CMDARGS_HELPER_" ++ show (map toUpper $ head $ modeNames m ++ [nam])) env) | ^^^^ [18 of 25] Compiling System.Console.CmdArgs.Implicit.Reader ( System/Console/CmdArgs/Implicit/Reader.hs, dist/build/System/Console/CmdArgs/Implicit/Reader.o, dist/build/System/Console/CmdArgs/Implicit/Reader.dyn_o ) System/Console/CmdArgs/Implicit/Reader.hs:35:16: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 35 | let down = head . children | ^^^^ System/Console/CmdArgs/Implicit/Reader.hs:82:42: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 82 | | otherwise = Right $ snd $ head ys | ^^^^ System/Console/CmdArgs/Implicit/Reader.hs:92:67: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 92 | if n == 1 then fmap (recompose x . return) $ readerRead_ (head $ filter ((==) 1 . readerParts) rs) s | ^^^^ [19 of 25] Compiling System.Console.CmdArgs.Implicit.Local ( System/Console/CmdArgs/Implicit/Local.hs, dist/build/System/Console/CmdArgs/Implicit/Local.o, dist/build/System/Console/CmdArgs/Implicit/Local.dyn_o ) System/Console/CmdArgs/Implicit/Local.hs:120:58: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 120 | where prog = map toLower $ typeShell $ fromCapture $ head xs | ^^^^ System/Console/CmdArgs/Implicit/Local.hs:220:24: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 220 | flagAnn a x = errFlag (head $ words $ show x) $ show a | ^^^^ [20 of 25] Compiling System.Console.CmdArgs.Implicit.Reform ( System/Console/CmdArgs/Implicit/Reform.hs, dist/build/System/Console/CmdArgs/Implicit/Reform.o, dist/build/System/Console/CmdArgs/Implicit/Reform.dyn_o ) [21 of 25] Compiling System.Console.CmdArgs.Implicit.Global ( System/Console/CmdArgs/Implicit/Global.hs, dist/build/System/Console/CmdArgs/Implicit/Global.o, dist/build/System/Console/CmdArgs/Implicit/Global.dyn_o ) System/Console/CmdArgs/Implicit/Global.hs:35:38: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 35 | collapse x | length ms == 1 = (snd $ head ms){modeNames=[progProgram x]} | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:37:27: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 37 | | otherwise = (head $ map zeroMode auto ++ map (emptyMode . snd) ms) | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:143:19: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 143 | com = map head $ filter ((== length (progModes p)) . length) $ group $ sort | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:193:74: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 193 | mapModes1 f pre m = m{modeGroupModes = fmap (mapModes0 f (pre ++ head (modeNames m) ++ " ")) $ modeGroupModes m} | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:204:68: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 204 | f flg = if concatMap flagNames hlp == flagNames flg then head hlp else flg | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:218:65: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 218 | toMode xs x = x{modeMode = (modeMode x){modeNames=["["++head xs++"]" | modeDefault x] ++ xs}} | ^^^^ [22 of 25] Compiling System.Console.CmdArgs.Implicit ( System/Console/CmdArgs/Implicit.hs, dist/build/System/Console/CmdArgs/Implicit.o, dist/build/System/Console/CmdArgs/Implicit.dyn_o ) [23 of 25] Compiling System.Console.CmdArgs.Quote ( System/Console/CmdArgs/Quote.hs, dist/build/System/Console/CmdArgs/Quote.o, dist/build/System/Console/CmdArgs/Quote.dyn_o ) [24 of 25] Compiling System.Console.CmdArgs ( System/Console/CmdArgs.hs, dist/build/System/Console/CmdArgs.o, dist/build/System/Console/CmdArgs.dyn_o ) [25 of 25] Compiling System.Console.CmdArgs.GetOpt ( System/Console/CmdArgs/GetOpt.hs, dist/build/System/Console/CmdArgs/GetOpt.o, dist/build/System/Console/CmdArgs/GetOpt.dyn_o ) [ 1 of 25] Compiling Data.Generics.Any ( Data/Generics/Any.hs, dist/build/Data/Generics/Any.p_o ) Data/Generics/Any.hs:21:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 21 | where y = init $ tail x | ^^^^ Data/Generics/Any.hs:102:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 102 | put $ tail cs | ^^^^ Data/Generics/Any.hs:103:45: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 103 | return $ fromAny $ head cs | ^^^^ [ 2 of 25] Compiling Data.Generics.Any.Prelude ( Data/Generics/Any/Prelude.hs, dist/build/Data/Generics/Any/Prelude.p_o ) [ 3 of 25] Compiling System.Console.CmdArgs.Annotate ( System/Console/CmdArgs/Annotate.hs, dist/build/System/Console/CmdArgs/Annotate.p_o ) System/Console/CmdArgs/Annotate.hs:81:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 81 | return $ head $ | ^^^^ System/Console/CmdArgs/Annotate.hs:148:14: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 148 | return $ head xs | ^^^^ [ 4 of 25] Compiling System.Console.CmdArgs.Default ( System/Console/CmdArgs/Default.hs, dist/build/System/Console/CmdArgs/Default.p_o ) [ 5 of 25] Compiling System.Console.CmdArgs.Explicit.ExpandArgsAt ( System/Console/CmdArgs/Explicit/ExpandArgsAt.hs, dist/build/System/Console/CmdArgs/Explicit/ExpandArgsAt.p_o ) [ 6 of 25] Compiling System.Console.CmdArgs.Explicit.SplitJoin ( System/Console/CmdArgs/Explicit/SplitJoin.hs, dist/build/System/Console/CmdArgs/Explicit/SplitJoin.p_o ) [ 7 of 25] Compiling System.Console.CmdArgs.Explicit.Type ( System/Console/CmdArgs/Explicit/Type.hs, dist/build/System/Console/CmdArgs/Explicit/Type.p_o ) [ 8 of 25] Compiling System.Console.CmdArgs.Explicit.Process ( System/Console/CmdArgs/Explicit/Process.hs, dist/build/System/Console/CmdArgs/Explicit/Process.p_o ) System/Console/CmdArgs/Explicit/Process.hs:74:44: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 74 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:74:72: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 74 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:75:61: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 75 | | otherwise -> upd s $ flagValue flag $ tail b | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:77:55: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 77 | | otherwise -> upd s $ flagValue flag $ tail b | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:91:46: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:91:74: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:92:99: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 92 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:94:101: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 94 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:95:87: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 95 | FlagOptRare x | "=" `isPrefixOf` xs -> upd s_{args=ys} $ flagValue flag $ tail xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:149:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 149 | match op = [(head ys,v) | (xs,v) <- names, let ys = filter (op value) xs, ys /= []] | ^^^^ [ 9 of 25] Compiling System.Console.CmdArgs.Explicit.Complete ( System/Console/CmdArgs/Explicit/Complete.hs, dist/build/System/Console/CmdArgs/Explicit/Complete.p_o ) System/Console/CmdArgs/Explicit/Complete.hs:52:15: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 52 | now = head $ next ++ [""] | ^^^^ [10 of 25] Compiling System.Console.CmdArgs.Helper ( System/Console/CmdArgs/Helper.hs, dist/build/System/Console/CmdArgs/Helper.p_o ) [11 of 25] Compiling System.Console.CmdArgs.Implicit.Ann ( System/Console/CmdArgs/Implicit/Ann.hs, dist/build/System/Console/CmdArgs/Implicit/Ann.p_o ) [12 of 25] Compiling System.Console.CmdArgs.Implicit.UI ( System/Console/CmdArgs/Implicit/UI.hs, dist/build/System/Console/CmdArgs/Implicit/UI.p_o ) [13 of 25] Compiling System.Console.CmdArgs.Text ( System/Console/CmdArgs/Text.hs, dist/build/System/Console/CmdArgs/Text.p_o ) System/Console/CmdArgs/Text.hs:91:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | cs = map (\x -> (fst $ head x, map maximum $ transpose $ map snd x)) $ | ^^^^ [14 of 25] Compiling System.Console.CmdArgs.Explicit.Help ( System/Console/CmdArgs/Explicit/Help.hs, dist/build/System/Console/CmdArgs/Explicit/Help.p_o ) System/Console/CmdArgs/Explicit/Help.hs:83:59: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 83 | helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"] | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:84:57: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 84 | helpText pre HelpFormatZsh x = map Line $ completeZsh $ head $ modeNames x ++ ["unknown"] | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:154:46: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 154 | add x y = if null x then x else (head x ++ y) : tail x | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:154:61: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 154 | add x y = if null x then x else (head x ++ y) : tail x | ^^^^ [15 of 25] Compiling System.Console.CmdArgs.Verbosity ( System/Console/CmdArgs/Verbosity.hs, dist/build/System/Console/CmdArgs/Verbosity.p_o ) [16 of 25] Compiling System.Console.CmdArgs.Implicit.Type ( System/Console/CmdArgs/Implicit/Type.hs, dist/build/System/Console/CmdArgs/Implicit/Type.p_o ) [17 of 25] Compiling System.Console.CmdArgs.Explicit ( System/Console/CmdArgs/Explicit.hs, dist/build/System/Console/CmdArgs/Explicit.p_o ) System/Console/CmdArgs/Explicit.hs:112:79: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 112 | let var = mplus (lookup ("CMDARGS_HELPER_" ++ show (map toUpper $ head $ modeNames m ++ [nam])) env) | ^^^^ [18 of 25] Compiling System.Console.CmdArgs.Implicit.Reader ( System/Console/CmdArgs/Implicit/Reader.hs, dist/build/System/Console/CmdArgs/Implicit/Reader.p_o ) System/Console/CmdArgs/Implicit/Reader.hs:35:16: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 35 | let down = head . children | ^^^^ System/Console/CmdArgs/Implicit/Reader.hs:82:42: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 82 | | otherwise = Right $ snd $ head ys | ^^^^ System/Console/CmdArgs/Implicit/Reader.hs:92:67: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 92 | if n == 1 then fmap (recompose x . return) $ readerRead_ (head $ filter ((==) 1 . readerParts) rs) s | ^^^^ [19 of 25] Compiling System.Console.CmdArgs.Implicit.Local ( System/Console/CmdArgs/Implicit/Local.hs, dist/build/System/Console/CmdArgs/Implicit/Local.p_o ) System/Console/CmdArgs/Implicit/Local.hs:120:58: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 120 | where prog = map toLower $ typeShell $ fromCapture $ head xs | ^^^^ System/Console/CmdArgs/Implicit/Local.hs:220:24: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 220 | flagAnn a x = errFlag (head $ words $ show x) $ show a | ^^^^ [20 of 25] Compiling System.Console.CmdArgs.Implicit.Reform ( System/Console/CmdArgs/Implicit/Reform.hs, dist/build/System/Console/CmdArgs/Implicit/Reform.p_o ) [21 of 25] Compiling System.Console.CmdArgs.Implicit.Global ( System/Console/CmdArgs/Implicit/Global.hs, dist/build/System/Console/CmdArgs/Implicit/Global.p_o ) System/Console/CmdArgs/Implicit/Global.hs:35:38: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 35 | collapse x | length ms == 1 = (snd $ head ms){modeNames=[progProgram x]} | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:37:27: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 37 | | otherwise = (head $ map zeroMode auto ++ map (emptyMode . snd) ms) | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:143:19: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 143 | com = map head $ filter ((== length (progModes p)) . length) $ group $ sort | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:193:74: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 193 | mapModes1 f pre m = m{modeGroupModes = fmap (mapModes0 f (pre ++ head (modeNames m) ++ " ")) $ modeGroupModes m} | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:204:68: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 204 | f flg = if concatMap flagNames hlp == flagNames flg then head hlp else flg | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:218:65: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 218 | toMode xs x = x{modeMode = (modeMode x){modeNames=["["++head xs++"]" | modeDefault x] ++ xs}} | ^^^^ [22 of 25] Compiling System.Console.CmdArgs.Implicit ( System/Console/CmdArgs/Implicit.hs, dist/build/System/Console/CmdArgs/Implicit.p_o ) [23 of 25] Compiling System.Console.CmdArgs.Quote ( System/Console/CmdArgs/Quote.hs, dist/build/System/Console/CmdArgs/Quote.p_o ) [24 of 25] Compiling System.Console.CmdArgs ( System/Console/CmdArgs.hs, dist/build/System/Console/CmdArgs.p_o ) [25 of 25] Compiling System.Console.CmdArgs.GetOpt ( System/Console/CmdArgs/GetOpt.hs, dist/build/System/Console/CmdArgs/GetOpt.p_o ) Running phase: checkPhase Package has no test suites. Running phase: haddockPhase Preprocessing library for cmdargs-0.10.22... Running Haddock on library for cmdargs-0.10.22... [ 1 of 25] Compiling Data.Generics.Any ( Data/Generics/Any.hs, /build/ghc731_0/ghc_4.o, /build/ghc731_0/ghc_4.dyn_o ) Data/Generics/Any.hs:21:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 21 | where y = init $ tail x | ^^^^ Data/Generics/Any.hs:102:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 102 | put $ tail cs | ^^^^ Data/Generics/Any.hs:103:45: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 103 | return $ fromAny $ head cs | ^^^^ [ 2 of 25] Compiling Data.Generics.Any.Prelude ( Data/Generics/Any/Prelude.hs, /build/ghc731_0/ghc_6.o, /build/ghc731_0/ghc_6.dyn_o ) [ 3 of 25] Compiling System.Console.CmdArgs.Annotate ( System/Console/CmdArgs/Annotate.hs, /build/ghc731_0/ghc_8.o, /build/ghc731_0/ghc_8.dyn_o ) System/Console/CmdArgs/Annotate.hs:81:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 81 | return $ head $ | ^^^^ System/Console/CmdArgs/Annotate.hs:148:14: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 148 | return $ head xs | ^^^^ [ 4 of 25] Compiling System.Console.CmdArgs.Default ( System/Console/CmdArgs/Default.hs, /build/ghc731_0/ghc_10.o, /build/ghc731_0/ghc_10.dyn_o ) [ 5 of 25] Compiling System.Console.CmdArgs.Explicit.ExpandArgsAt ( System/Console/CmdArgs/Explicit/ExpandArgsAt.hs, /build/ghc731_0/ghc_16.o, /build/ghc731_0/ghc_16.dyn_o ) [ 6 of 25] Compiling System.Console.CmdArgs.Explicit.SplitJoin ( System/Console/CmdArgs/Explicit/SplitJoin.hs, /build/ghc731_0/ghc_22.o, /build/ghc731_0/ghc_22.dyn_o ) [ 7 of 25] Compiling System.Console.CmdArgs.Explicit.Type ( System/Console/CmdArgs/Explicit/Type.hs, /build/ghc731_0/ghc_24.o, /build/ghc731_0/ghc_24.dyn_o ) [ 8 of 25] Compiling System.Console.CmdArgs.Explicit.Process ( System/Console/CmdArgs/Explicit/Process.hs, /build/ghc731_0/ghc_20.o, /build/ghc731_0/ghc_20.dyn_o ) System/Console/CmdArgs/Explicit/Process.hs:74:44: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 74 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:74:72: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 74 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:75:61: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 75 | | otherwise -> upd s $ flagValue flag $ tail b | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:77:55: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 77 | | otherwise -> upd s $ flagValue flag $ tail b | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:91:46: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:91:74: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:92:99: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 92 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:94:101: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 94 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:95:87: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 95 | FlagOptRare x | "=" `isPrefixOf` xs -> upd s_{args=ys} $ flagValue flag $ tail xs | ^^^^ System/Console/CmdArgs/Explicit/Process.hs:149:22: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 149 | match op = [(head ys,v) | (xs,v) <- names, let ys = filter (op value) xs, ys /= []] | ^^^^ [ 9 of 25] Compiling System.Console.CmdArgs.Explicit.Complete ( System/Console/CmdArgs/Explicit/Complete.hs, /build/ghc731_0/ghc_14.o, /build/ghc731_0/ghc_14.dyn_o ) System/Console/CmdArgs/Explicit/Complete.hs:52:15: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 52 | now = head $ next ++ [""] | ^^^^ [10 of 25] Compiling System.Console.CmdArgs.Helper ( System/Console/CmdArgs/Helper.hs, /build/ghc731_0/ghc_26.o, /build/ghc731_0/ghc_26.dyn_o ) [11 of 25] Compiling System.Console.CmdArgs.Implicit.Ann ( System/Console/CmdArgs/Implicit/Ann.hs, /build/ghc731_0/ghc_30.o, /build/ghc731_0/ghc_30.dyn_o ) [12 of 25] Compiling System.Console.CmdArgs.Implicit.UI ( System/Console/CmdArgs/Implicit/UI.hs, /build/ghc731_0/ghc_42.o, /build/ghc731_0/ghc_42.dyn_o ) [13 of 25] Compiling System.Console.CmdArgs.Text ( System/Console/CmdArgs/Text.hs, /build/ghc731_0/ghc_44.o, /build/ghc731_0/ghc_44.dyn_o ) System/Console/CmdArgs/Text.hs:91:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 91 | cs = map (\x -> (fst $ head x, map maximum $ transpose $ map snd x)) $ | ^^^^ [14 of 25] Compiling System.Console.CmdArgs.Explicit.Help ( System/Console/CmdArgs/Explicit/Help.hs, /build/ghc731_0/ghc_18.o, /build/ghc731_0/ghc_18.dyn_o ) System/Console/CmdArgs/Explicit/Help.hs:83:59: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 83 | helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"] | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:84:57: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 84 | helpText pre HelpFormatZsh x = map Line $ completeZsh $ head $ modeNames x ++ ["unknown"] | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:154:46: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 154 | add x y = if null x then x else (head x ++ y) : tail x | ^^^^ System/Console/CmdArgs/Explicit/Help.hs:154:61: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"." | 154 | add x y = if null x then x else (head x ++ y) : tail x | ^^^^ [15 of 25] Compiling System.Console.CmdArgs.Verbosity ( System/Console/CmdArgs/Verbosity.hs, /build/ghc731_0/ghc_46.o, /build/ghc731_0/ghc_46.dyn_o ) [16 of 25] Compiling System.Console.CmdArgs.Implicit.Type ( System/Console/CmdArgs/Implicit/Type.hs, /build/ghc731_0/ghc_40.o, /build/ghc731_0/ghc_40.dyn_o ) [17 of 25] Compiling System.Console.CmdArgs.Explicit ( System/Console/CmdArgs/Explicit.hs, /build/ghc731_0/ghc_12.o, /build/ghc731_0/ghc_12.dyn_o ) System/Console/CmdArgs/Explicit.hs:112:79: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 112 | let var = mplus (lookup ("CMDARGS_HELPER_" ++ show (map toUpper $ head $ modeNames m ++ [nam])) env) | ^^^^ [18 of 25] Compiling System.Console.CmdArgs.Implicit.Reader ( System/Console/CmdArgs/Implicit/Reader.hs, /build/ghc731_0/ghc_36.o, /build/ghc731_0/ghc_36.dyn_o ) System/Console/CmdArgs/Implicit/Reader.hs:35:16: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 35 | let down = head . children | ^^^^ System/Console/CmdArgs/Implicit/Reader.hs:82:42: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 82 | | otherwise = Right $ snd $ head ys | ^^^^ System/Console/CmdArgs/Implicit/Reader.hs:92:67: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 92 | if n == 1 then fmap (recompose x . return) $ readerRead_ (head $ filter ((==) 1 . readerParts) rs) s | ^^^^ [19 of 25] Compiling System.Console.CmdArgs.Implicit.Local ( System/Console/CmdArgs/Implicit/Local.hs, /build/ghc731_0/ghc_34.o, /build/ghc731_0/ghc_34.dyn_o ) System/Console/CmdArgs/Implicit/Local.hs:120:58: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 120 | where prog = map toLower $ typeShell $ fromCapture $ head xs | ^^^^ System/Console/CmdArgs/Implicit/Local.hs:220:24: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 220 | flagAnn a x = errFlag (head $ words $ show x) $ show a | ^^^^ [20 of 25] Compiling System.Console.CmdArgs.Implicit.Reform ( System/Console/CmdArgs/Implicit/Reform.hs, /build/ghc731_0/ghc_38.o, /build/ghc731_0/ghc_38.dyn_o ) [21 of 25] Compiling System.Console.CmdArgs.Implicit.Global ( System/Console/CmdArgs/Implicit/Global.hs, /build/ghc731_0/ghc_32.o, /build/ghc731_0/ghc_32.dyn_o ) System/Console/CmdArgs/Implicit/Global.hs:35:38: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 35 | collapse x | length ms == 1 = (snd $ head ms){modeNames=[progProgram x]} | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:37:27: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 37 | | otherwise = (head $ map zeroMode auto ++ map (emptyMode . snd) ms) | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:143:19: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 143 | com = map head $ filter ((== length (progModes p)) . length) $ group $ sort | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:193:74: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 193 | mapModes1 f pre m = m{modeGroupModes = fmap (mapModes0 f (pre ++ head (modeNames m) ++ " ")) $ modeGroupModes m} | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:204:68: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 204 | f flg = if concatMap flagNames hlp == flagNames flg then head hlp else flg | ^^^^ System/Console/CmdArgs/Implicit/Global.hs:218:65: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Data.List, but defined in GHC.Internal.List): "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | 218 | toMode xs x = x{modeMode = (modeMode x){modeNames=["["++head xs++"]" | modeDefault x] ++ xs}} | ^^^^ [22 of 25] Compiling System.Console.CmdArgs.Implicit ( System/Console/CmdArgs/Implicit.hs, /build/ghc731_0/ghc_28.o, /build/ghc731_0/ghc_28.dyn_o ) [23 of 25] Compiling System.Console.CmdArgs.Quote ( System/Console/CmdArgs/Quote.hs, nothing ) [24 of 25] Compiling System.Console.CmdArgs ( System/Console/CmdArgs.hs, nothing ) [25 of 25] Compiling System.Console.CmdArgs.GetOpt ( System/Console/CmdArgs/GetOpt.hs, nothing ) Haddock coverage: Warning: 'RecConError' is ambiguous. It is defined * in ‘GHC.Internal.Control.Exception.Base’ * in ‘GHC.Internal.Control.Exception.Base’ You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in ‘GHC.Internal.Control.Exception.Base’ 100% ( 17 / 17) in 'System.Console.CmdArgs.Annotate' 100% ( 2 / 2) in 'System.Console.CmdArgs.Default' Warning: 'getArgs' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'Mode' is ambiguous. It is defined * at System/Console/CmdArgs/Explicit/Type.hs:81:15 * at System/Console/CmdArgs/Explicit/Type.hs:81:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:81:1 Warning: 'helpText' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'expandArgsAt' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'Mode' is ambiguous. It is defined * at System/Console/CmdArgs/Explicit/Type.hs:81:15 * at System/Console/CmdArgs/Explicit/Type.hs:81:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:81:1 100% ( 8 / 8) in 'System.Console.CmdArgs.Helper' Warning: 'flag' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 100% ( 5 / 5) in 'System.Console.CmdArgs.Text' 100% ( 8 / 8) in 'System.Console.CmdArgs.Verbosity' Warning: 'Mode' is ambiguous. It is defined * at System/Console/CmdArgs/Explicit/Type.hs:81:15 * at System/Console/CmdArgs/Explicit/Type.hs:81:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:81:1 Warning: 'Group' is ambiguous. It is defined * at System/Console/CmdArgs/Explicit/Type.hs:42:16 * at System/Console/CmdArgs/Explicit/Type.hs:42:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:42:1 100% ( 48 / 48) in 'System.Console.CmdArgs.Explicit' Warning: 'process' is out of scope. If you qualify the identifier, haddock can try to link it anyway. Warning: 'CmdArgs' is ambiguous. It is defined * at System/Console/CmdArgs/Implicit/Type.hs:19:18 * at System/Console/CmdArgs/Implicit/Type.hs:19:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at System/Console/CmdArgs/Implicit/Type.hs:19:1 100% ( 50 / 50) in 'System.Console.CmdArgs.Implicit' 100% ( 9 / 9) in 'System.Console.CmdArgs.Quote' 100% ( 2 / 2) in 'System.Console.CmdArgs' Warning: 'Mode' is ambiguous. It is defined * at System/Console/CmdArgs/Explicit/Type.hs:81:15 * at System/Console/CmdArgs/Explicit/Type.hs:81:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:81:1 100% ( 8 / 8) in 'System.Console.CmdArgs.GetOpt' Warning: System.Console.CmdArgs.Implicit: could not find link destinations for: - System.Console.CmdArgs.Implicit.Type.CmdArgsPrivate Documentation created: dist/doc/html/cmdargs/, dist/doc/html/cmdargs/cmdargs.txt Running phase: installPhase Installing library in /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-3209/cmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22 shrinking /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/lib/ghc-9.10.3/lib/x86_64-linux-ghc-9.10.3-3209/libHScmdargs-0.10.22-5NQi36JiiVF8OXIjtTKrwI-ghc9.10.3.so checking for references to /build/ in /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22... patching script interpreter paths in /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22 stripping (with command strip and flags -S -p) in /nix/store/i6qljn9q4v0i3wmg8i9lfz8rdy36al8p-cmdargs-0.10.22/lib shrinking RPATHs of ELF executables and libraries in /nix/store/29hk0x17i7n8nqgzhjsrhkqw5myhzq2d-cmdargs-0.10.22-doc checking for references to /build/ in /nix/store/29hk0x17i7n8nqgzhjsrhkqw5myhzq2d-cmdargs-0.10.22-doc... patching script interpreter paths in /nix/store/29hk0x17i7n8nqgzhjsrhkqw5myhzq2d-cmdargs-0.10.22-doc