nixbot

builds

succeeded cmdargs-0.10.22 checks.aarch64-linux.treefmt · build #735 · raw

setupCompilerEnvironmentPhase
1Build with /nix/store/q9ymri874wpz3vjc2l7hryhf66ajiajy-ghc-9.10.3.
unpackPhase
2unpacking source archive /nix/store/ibgaai69wjx9k7l9xh1y1fax7rb6q11g-cmdargs-0.10.22.tar.gz3source root is cmdargs-0.10.224setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file "cmdargs-0.10.22/System/Console/CmdArgs/Verbosity.hs"
compileBuildDriverPhase
5setupCompileFlags: -package-db=/build/tmp.LxxyUt2pW0/setup-package.conf.d -threaded6[1 of 2] Compiling Main ( Setup.hs, /build/tmp.LxxyUt2pW0/Main.o )7[2 of 2] Linking Setup
configurePhase
8configureFlags: --verbose --prefix=/nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --docdir=/nix/store/hvfmb8c0717h7k0z64a2cnqjn0xg0m4b-cmdargs-0.10.22-doc/share/doc/cmdargs-0.10.22 --with-gcc=gcc --package-db=/build/tmp.LxxyUt2pW0/package.conf.d --ghc-option=-j16 --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/04kpg6rvmahpgmhz4dbzad9nm8y1rpvb-ncurses-6.5/lib --extra-lib-dirs=/nix/store/c1wzh5p5d40r1da3zka4rl9fkdd4y2sb-libffi-3.5.2/lib --extra-lib-dirs=/nix/store/s48kpwzasghzwp1skd4mdrn5m52h54m7-gmp-with-cxx-6.3.0/lib --extra-lib-dirs=/nix/store/79xf7l72ayi0w10qzx0fd1c8j17wvcr6-numactl-2.0.18/lib9Using Parsec parser10Configuring cmdargs-0.10.22...11Flags chosen: quotation=True, testprog=False12Dependency base >=4.4 && <5: using base-4.20.2.013Dependency filepath: using filepath-1.5.4.014Dependency process >=1.0: using process-1.6.26.115Dependency template-haskell: using template-haskell-2.22.0.016Dependency transformers >=0.2: using transformers-0.6.1.117Source component graph: component lib18Configured component graph:19 component cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM20 include base-4.20.2.0-2e5121 include filepath-1.5.4.0-3c3322 include process-1.6.26.1-d97f23 include template-haskell-2.22.0.0-bcbd24 include transformers-0.6.1.1-0f5425Linked component graph:26 unit cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM27 include base-4.20.2.0-2e5128 include filepath-1.5.4.0-3c3329 include process-1.6.26.1-d97f30 include template-haskell-2.22.0.0-bcbd31 include transformers-0.6.1.1-0f5432 System.Console.CmdArgs=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs,System.Console.CmdArgs.Annotate=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.Annotate,System.Console.CmdArgs.Default=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.Default,System.Console.CmdArgs.Explicit=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.Explicit,System.Console.CmdArgs.GetOpt=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.GetOpt,System.Console.CmdArgs.Helper=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.Helper,System.Console.CmdArgs.Implicit=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.Implicit,System.Console.CmdArgs.Quote=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.Quote,System.Console.CmdArgs.Text=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.Text,System.Console.CmdArgs.Verbosity=cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM:System.Console.CmdArgs.Verbosity33Ready component graph:34 definite cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM35 depends base-4.20.2.0-2e5136 depends filepath-1.5.4.0-3c3337 depends process-1.6.26.1-d97f38 depends template-haskell-2.22.0.0-bcbd39 depends transformers-0.6.1.1-0f5440Using Cabal-3.12.1.0 compiled by ghc-9.1041Using compiler: ghc-9.10.342Using install prefix:43/nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.2244Executables installed in:45/nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/bin46Libraries installed in:47/nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/lib/ghc-9.10.3/lib/aarch64-linux-ghc-9.10.3-6fbb/cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM48Dynamic Libraries installed in:49/nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/lib/ghc-9.10.3/lib/aarch64-linux-ghc-9.10.3-6fbb50Private executables installed in:51/nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/libexec/aarch64-linux-ghc-9.10.3-6fbb/cmdargs-0.10.2252Data files installed in:53/nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/share/aarch64-linux-ghc-9.10.3-6fbb/cmdargs-0.10.2254Documentation installed in:55/nix/store/hvfmb8c0717h7k0z64a2cnqjn0xg0m4b-cmdargs-0.10.22-doc/share/doc/cmdargs-0.10.2256Configuration files installed in:57/nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/etc58No alex found59Using ar found on system at:60/nix/store/2lhdrjxy65h7fl184q4751lgqzhqrsa2-binutils-wrapper-2.44/bin/ar61No c2hs found62No cpphs found63No doctest found64Using gcc version 15.2.0 given by user at:65/nix/store/484f8q8xa48icqgdq9b67vhq8clcqjy9-gcc-wrapper-15.2.0/bin/gcc66Using ghc version 9.10.3 found on system at:67/nix/store/q9ymri874wpz3vjc2l7hryhf66ajiajy-ghc-9.10.3/bin/ghc68Using ghc-pkg version 9.10.3 found on system at:69/nix/store/q9ymri874wpz3vjc2l7hryhf66ajiajy-ghc-9.10.3/bin/ghc-pkg-9.10.370No ghcjs found71No ghcjs-pkg found72No greencard found73Using haddock version 2.31.1 found on system at:74/nix/store/q9ymri874wpz3vjc2l7hryhf66ajiajy-ghc-9.10.3/bin/haddock-ghc-9.10.375No happy found76Using haskell-suite found on system at: haskell-suite-dummy-location77Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location78No hmake found79Using hpc version 0.69 found on system at:80/nix/store/q9ymri874wpz3vjc2l7hryhf66ajiajy-ghc-9.10.3/bin/hpc-ghc-9.10.381Using hsc2hs version 0.68.10 found on system at:82/nix/store/q9ymri874wpz3vjc2l7hryhf66ajiajy-ghc-9.10.3/bin/hsc2hs-ghc-9.10.383Using hscolour version 1.25 found on system at:84/nix/store/2rcfrn56xfi0ibwhdq2d07gf7dbiz2ss-hscolour-1.25/bin/HsColour85No jhc found86Using ld found on system at:87/nix/store/484f8q8xa48icqgdq9b67vhq8clcqjy9-gcc-wrapper-15.2.0/bin/ld88No pkg-config found89Using runghc version 9.10.3 found on system at:90/nix/store/q9ymri874wpz3vjc2l7hryhf66ajiajy-ghc-9.10.3/bin/runghc-9.10.391Using strip version 2.44 found on system at:92/nix/store/484f8q8xa48icqgdq9b67vhq8clcqjy9-gcc-wrapper-15.2.0/bin/strip93Using tar found on system at:94/nix/store/vawd4kk3lfqf4430hlcm077b5r2pd74a-gnutar-1.35/bin/tar95No uhc found
buildPhase
96Preprocessing library for cmdargs-0.10.22...97Building library for cmdargs-0.10.22...98[ 1 of 25] Compiling Data.Generics.Any ( Data/Generics/Any.hs, dist/build/Data/Generics/Any.o, dist/build/Data/Generics/Any.dyn_o )99Data/Generics/Any.hs:21:22: warning: [GHC-63394] [-Wx-partial]100 In the use of ‘tail’101 (imported from Data.List, but defined in GHC.Internal.List):102 "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"."103 |10421 | where y = init $ tail x105 | ^^^^106107Data/Generics/Any.hs:102:32: warning: [GHC-63394] [-Wx-partial]108 In the use of ‘tail’109 (imported from Data.List, but defined in GHC.Internal.List):110 "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"."111 |112102 | put $ tail cs113 | ^^^^114115Data/Generics/Any.hs:103:45: warning: [GHC-63394] [-Wx-partial]116 In the use of ‘head’117 (imported from Data.List, but defined in GHC.Internal.List):118 "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"."119 |120103 | return $ fromAny $ head cs121 | ^^^^122123[ 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 )124[ 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 )125System/Console/CmdArgs/Annotate.hs:81:22: warning: [GHC-63394] [-Wx-partial]126 In the use of ‘head’127 (imported from Data.List, but defined in GHC.Internal.List):128 "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"."129 |13081 | return $ head $131 | ^^^^132133System/Console/CmdArgs/Annotate.hs:148:14: warning: [GHC-63394] [-Wx-partial]134 In the use of ‘head’135 (imported from Data.List, but defined in GHC.Internal.List):136 "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"."137 |138148 | return $ head xs139 | ^^^^140141[ 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 )142[ 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 )143[ 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 )144[ 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 )145[ 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 )146System/Console/CmdArgs/Explicit/Process.hs:74:44: warning: [GHC-63394] [-Wx-partial]147 In the use of ‘tail’148 (imported from Data.List, but defined in GHC.Internal.List):149 "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"."150 |15174 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys152 | ^^^^153154System/Console/CmdArgs/Explicit/Process.hs:74:72: warning: [GHC-63394] [-Wx-partial]155 In the use of ‘head’156 (imported from Data.List, but defined in GHC.Internal.List):157 "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"."158 |15974 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys160 | ^^^^161162System/Console/CmdArgs/Explicit/Process.hs:75:61: warning: [GHC-63394] [-Wx-partial]163 In the use of ‘tail’164 (imported from Data.List, but defined in GHC.Internal.List):165 "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"."166 |16775 | | otherwise -> upd s $ flagValue flag $ tail b168 | ^^^^169170System/Console/CmdArgs/Explicit/Process.hs:77:55: warning: [GHC-63394] [-Wx-partial]171 In the use of ‘tail’172 (imported from Data.List, but defined in GHC.Internal.List):173 "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"."174 |17577 | | otherwise -> upd s $ flagValue flag $ tail b176 | ^^^^177178System/Console/CmdArgs/Explicit/Process.hs:91:46: warning: [GHC-63394] [-Wx-partial]179 In the use of ‘tail’180 (imported from Data.List, but defined in GHC.Internal.List):181 "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"."182 |18391 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys184 | ^^^^185186System/Console/CmdArgs/Explicit/Process.hs:91:74: warning: [GHC-63394] [-Wx-partial]187 In the use of ‘head’188 (imported from Data.List, but defined in GHC.Internal.List):189 "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"."190 |19191 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys192 | ^^^^193194System/Console/CmdArgs/Explicit/Process.hs:92:99: warning: [GHC-63394] [-Wx-partial]195 In the use of ‘tail’196 (imported from Data.List, but defined in GHC.Internal.List):197 "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"."198 |19992 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs200 | ^^^^201202System/Console/CmdArgs/Explicit/Process.hs:94:101: warning: [GHC-63394] [-Wx-partial]203 In the use of ‘tail’204 (imported from Data.List, but defined in GHC.Internal.List):205 "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"."206 |20794 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs208 | ^^^^209210System/Console/CmdArgs/Explicit/Process.hs:95:87: warning: [GHC-63394] [-Wx-partial]211 In the use of ‘tail’212 (imported from Data.List, but defined in GHC.Internal.List):213 "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"."214 |21595 | FlagOptRare x | "=" `isPrefixOf` xs -> upd s_{args=ys} $ flagValue flag $ tail xs216 | ^^^^217218System/Console/CmdArgs/Explicit/Process.hs:149:22: warning: [GHC-63394] [-Wx-partial]219 In the use of ‘head’220 (imported from Data.List, but defined in GHC.Internal.List):221 "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"."222 |223149 | match op = [(head ys,v) | (xs,v) <- names, let ys = filter (op value) xs, ys /= []]224 | ^^^^225226[ 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 )227System/Console/CmdArgs/Explicit/Complete.hs:52:15: warning: [GHC-63394] [-Wx-partial]228 In the use of ‘head’229 (imported from Data.List, but defined in GHC.Internal.List):230 "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"."231 |23252 | now = head $ next ++ [""]233 | ^^^^234235[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 )236[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 )237[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 )238[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 )239System/Console/CmdArgs/Text.hs:91:32: warning: [GHC-63394] [-Wx-partial]240 In the use of ‘head’241 (imported from Data.List, but defined in GHC.Internal.List):242 "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"."243 |24491 | cs = map (\x -> (fst $ head x, map maximum $ transpose $ map snd x)) $245 | ^^^^246247[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 )248System/Console/CmdArgs/Explicit/Help.hs:83:59: warning: [GHC-63394] [-Wx-partial]249 In the use of ‘head’250 (imported from Data.List, but defined in GHC.Internal.List):251 "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"."252 |25383 | helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"]254 | ^^^^255256System/Console/CmdArgs/Explicit/Help.hs:84:57: warning: [GHC-63394] [-Wx-partial]257 In the use of ‘head’258 (imported from Data.List, but defined in GHC.Internal.List):259 "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"."260 |26184 | helpText pre HelpFormatZsh x = map Line $ completeZsh $ head $ modeNames x ++ ["unknown"]262 | ^^^^263264System/Console/CmdArgs/Explicit/Help.hs:154:46: warning: [GHC-63394] [-Wx-partial]265 In the use of ‘head’266 (imported from Data.List, but defined in GHC.Internal.List):267 "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"."268 |269154 | add x y = if null x then x else (head x ++ y) : tail x270 | ^^^^271272System/Console/CmdArgs/Explicit/Help.hs:154:61: warning: [GHC-63394] [-Wx-partial]273 In the use of ‘tail’274 (imported from Data.List, but defined in GHC.Internal.List):275 "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"."276 |277154 | add x y = if null x then x else (head x ++ y) : tail x278 | ^^^^279280[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 )281[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 )282[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 )283System/Console/CmdArgs/Explicit.hs:112:79: warning: [GHC-63394] [-Wx-partial]284 In the use of ‘head’285 (imported from Prelude, but defined in GHC.Internal.List):286 "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"."287 |288112 | let var = mplus (lookup ("CMDARGS_HELPER_" ++ show (map toUpper $ head $ modeNames m ++ [nam])) env)289 | ^^^^290291[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 )292System/Console/CmdArgs/Implicit/Reader.hs:35:16: warning: [GHC-63394] [-Wx-partial]293 In the use of ‘head’294 (imported from Data.List, but defined in GHC.Internal.List):295 "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"."296 |29735 | let down = head . children298 | ^^^^299300System/Console/CmdArgs/Implicit/Reader.hs:82:42: warning: [GHC-63394] [-Wx-partial]301 In the use of ‘head’302 (imported from Data.List, but defined in GHC.Internal.List):303 "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"."304 |30582 | | otherwise = Right $ snd $ head ys306 | ^^^^307308System/Console/CmdArgs/Implicit/Reader.hs:92:67: warning: [GHC-63394] [-Wx-partial]309 In the use of ‘head’310 (imported from Data.List, but defined in GHC.Internal.List):311 "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"."312 |31392 | if n == 1 then fmap (recompose x . return) $ readerRead_ (head $ filter ((==) 1 . readerParts) rs) s314 | ^^^^315316[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 )317System/Console/CmdArgs/Implicit/Local.hs:120:58: warning: [GHC-63394] [-Wx-partial]318 In the use of ‘head’319 (imported from Data.List, but defined in GHC.Internal.List):320 "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"."321 |322120 | where prog = map toLower $ typeShell $ fromCapture $ head xs323 | ^^^^324325System/Console/CmdArgs/Implicit/Local.hs:220:24: warning: [GHC-63394] [-Wx-partial]326 In the use of ‘head’327 (imported from Data.List, but defined in GHC.Internal.List):328 "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"."329 |330220 | flagAnn a x = errFlag (head $ words $ show x) $ show a331 | ^^^^332333[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 )334[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 )335System/Console/CmdArgs/Implicit/Global.hs:35:38: warning: [GHC-63394] [-Wx-partial]336 In the use of ‘head’337 (imported from Data.List, but defined in GHC.Internal.List):338 "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"."339 |34035 | collapse x | length ms == 1 = (snd $ head ms){modeNames=[progProgram x]}341 | ^^^^342343System/Console/CmdArgs/Implicit/Global.hs:37:27: warning: [GHC-63394] [-Wx-partial]344 In the use of ‘head’345 (imported from Data.List, but defined in GHC.Internal.List):346 "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"."347 |34837 | | otherwise = (head $ map zeroMode auto ++ map (emptyMode . snd) ms)349 | ^^^^350351System/Console/CmdArgs/Implicit/Global.hs:143:19: warning: [GHC-63394] [-Wx-partial]352 In the use of ‘head’353 (imported from Data.List, but defined in GHC.Internal.List):354 "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"."355 |356143 | com = map head $ filter ((== length (progModes p)) . length) $ group $ sort357 | ^^^^358359System/Console/CmdArgs/Implicit/Global.hs:193:74: warning: [GHC-63394] [-Wx-partial]360 In the use of ‘head’361 (imported from Data.List, but defined in GHC.Internal.List):362 "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"."363 |364193 | mapModes1 f pre m = m{modeGroupModes = fmap (mapModes0 f (pre ++ head (modeNames m) ++ " ")) $ modeGroupModes m}365 | ^^^^366367System/Console/CmdArgs/Implicit/Global.hs:204:68: warning: [GHC-63394] [-Wx-partial]368 In the use of ‘head’369 (imported from Data.List, but defined in GHC.Internal.List):370 "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"."371 |372204 | f flg = if concatMap flagNames hlp == flagNames flg then head hlp else flg373 | ^^^^374375System/Console/CmdArgs/Implicit/Global.hs:218:65: warning: [GHC-63394] [-Wx-partial]376 In the use of ‘head’377 (imported from Data.List, but defined in GHC.Internal.List):378 "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"."379 |380218 | toMode xs x = x{modeMode = (modeMode x){modeNames=["["++head xs++"]" | modeDefault x] ++ xs}}381 | ^^^^382383[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 )384[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 )385[24 of 25] Compiling System.Console.CmdArgs ( System/Console/CmdArgs.hs, dist/build/System/Console/CmdArgs.o, dist/build/System/Console/CmdArgs.dyn_o )386[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 )387[ 1 of 25] Compiling Data.Generics.Any ( Data/Generics/Any.hs, dist/build/Data/Generics/Any.p_o )388Data/Generics/Any.hs:21:22: warning: [GHC-63394] [-Wx-partial]389 In the use of ‘tail’390 (imported from Data.List, but defined in GHC.Internal.List):391 "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"."392 |39321 | where y = init $ tail x394 | ^^^^395396Data/Generics/Any.hs:102:32: warning: [GHC-63394] [-Wx-partial]397 In the use of ‘tail’398 (imported from Data.List, but defined in GHC.Internal.List):399 "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"."400 |401102 | put $ tail cs402 | ^^^^403404Data/Generics/Any.hs:103:45: warning: [GHC-63394] [-Wx-partial]405 In the use of ‘head’406 (imported from Data.List, but defined in GHC.Internal.List):407 "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"."408 |409103 | return $ fromAny $ head cs410 | ^^^^411412[ 2 of 25] Compiling Data.Generics.Any.Prelude ( Data/Generics/Any/Prelude.hs, dist/build/Data/Generics/Any/Prelude.p_o )413[ 3 of 25] Compiling System.Console.CmdArgs.Annotate ( System/Console/CmdArgs/Annotate.hs, dist/build/System/Console/CmdArgs/Annotate.p_o )414System/Console/CmdArgs/Annotate.hs:81:22: warning: [GHC-63394] [-Wx-partial]415 In the use of ‘head’416 (imported from Data.List, but defined in GHC.Internal.List):417 "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"."418 |41981 | return $ head $420 | ^^^^421422System/Console/CmdArgs/Annotate.hs:148:14: warning: [GHC-63394] [-Wx-partial]423 In the use of ‘head’424 (imported from Data.List, but defined in GHC.Internal.List):425 "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"."426 |427148 | return $ head xs428 | ^^^^429430[ 4 of 25] Compiling System.Console.CmdArgs.Default ( System/Console/CmdArgs/Default.hs, dist/build/System/Console/CmdArgs/Default.p_o )431[ 5 of 25] Compiling System.Console.CmdArgs.Explicit.ExpandArgsAt ( System/Console/CmdArgs/Explicit/ExpandArgsAt.hs, dist/build/System/Console/CmdArgs/Explicit/ExpandArgsAt.p_o )432[ 6 of 25] Compiling System.Console.CmdArgs.Explicit.SplitJoin ( System/Console/CmdArgs/Explicit/SplitJoin.hs, dist/build/System/Console/CmdArgs/Explicit/SplitJoin.p_o )433[ 7 of 25] Compiling System.Console.CmdArgs.Explicit.Type ( System/Console/CmdArgs/Explicit/Type.hs, dist/build/System/Console/CmdArgs/Explicit/Type.p_o )434[ 8 of 25] Compiling System.Console.CmdArgs.Explicit.Process ( System/Console/CmdArgs/Explicit/Process.hs, dist/build/System/Console/CmdArgs/Explicit/Process.p_o )435System/Console/CmdArgs/Explicit/Process.hs:74:44: warning: [GHC-63394] [-Wx-partial]436 In the use of ‘tail’437 (imported from Data.List, but defined in GHC.Internal.List):438 "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"."439 |44074 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys441 | ^^^^442443System/Console/CmdArgs/Explicit/Process.hs:74:72: warning: [GHC-63394] [-Wx-partial]444 In the use of ‘head’445 (imported from Data.List, but defined in GHC.Internal.List):446 "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"."447 |44874 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys449 | ^^^^450451System/Console/CmdArgs/Explicit/Process.hs:75:61: warning: [GHC-63394] [-Wx-partial]452 In the use of ‘tail’453 (imported from Data.List, but defined in GHC.Internal.List):454 "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"."455 |45675 | | otherwise -> upd s $ flagValue flag $ tail b457 | ^^^^458459System/Console/CmdArgs/Explicit/Process.hs:77:55: warning: [GHC-63394] [-Wx-partial]460 In the use of ‘tail’461 (imported from Data.List, but defined in GHC.Internal.List):462 "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"."463 |46477 | | otherwise -> upd s $ flagValue flag $ tail b465 | ^^^^466467System/Console/CmdArgs/Explicit/Process.hs:91:46: warning: [GHC-63394] [-Wx-partial]468 In the use of ‘tail’469 (imported from Data.List, but defined in GHC.Internal.List):470 "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"."471 |47291 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys473 | ^^^^474475System/Console/CmdArgs/Explicit/Process.hs:91:74: warning: [GHC-63394] [-Wx-partial]476 In the use of ‘head’477 (imported from Data.List, but defined in GHC.Internal.List):478 "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"."479 |48091 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys481 | ^^^^482483System/Console/CmdArgs/Explicit/Process.hs:92:99: warning: [GHC-63394] [-Wx-partial]484 In the use of ‘tail’485 (imported from Data.List, but defined in GHC.Internal.List):486 "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"."487 |48892 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs489 | ^^^^490491System/Console/CmdArgs/Explicit/Process.hs:94:101: warning: [GHC-63394] [-Wx-partial]492 In the use of ‘tail’493 (imported from Data.List, but defined in GHC.Internal.List):494 "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"."495 |49694 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs497 | ^^^^498499System/Console/CmdArgs/Explicit/Process.hs:95:87: warning: [GHC-63394] [-Wx-partial]500 In the use of ‘tail’501 (imported from Data.List, but defined in GHC.Internal.List):502 "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"."503 |50495 | FlagOptRare x | "=" `isPrefixOf` xs -> upd s_{args=ys} $ flagValue flag $ tail xs505 | ^^^^506507System/Console/CmdArgs/Explicit/Process.hs:149:22: warning: [GHC-63394] [-Wx-partial]508 In the use of ‘head’509 (imported from Data.List, but defined in GHC.Internal.List):510 "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"."511 |512149 | match op = [(head ys,v) | (xs,v) <- names, let ys = filter (op value) xs, ys /= []]513 | ^^^^514515[ 9 of 25] Compiling System.Console.CmdArgs.Explicit.Complete ( System/Console/CmdArgs/Explicit/Complete.hs, dist/build/System/Console/CmdArgs/Explicit/Complete.p_o )516System/Console/CmdArgs/Explicit/Complete.hs:52:15: warning: [GHC-63394] [-Wx-partial]517 In the use of ‘head’518 (imported from Data.List, but defined in GHC.Internal.List):519 "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"."520 |52152 | now = head $ next ++ [""]522 | ^^^^523524[10 of 25] Compiling System.Console.CmdArgs.Helper ( System/Console/CmdArgs/Helper.hs, dist/build/System/Console/CmdArgs/Helper.p_o )525[11 of 25] Compiling System.Console.CmdArgs.Implicit.Ann ( System/Console/CmdArgs/Implicit/Ann.hs, dist/build/System/Console/CmdArgs/Implicit/Ann.p_o )526[12 of 25] Compiling System.Console.CmdArgs.Implicit.UI ( System/Console/CmdArgs/Implicit/UI.hs, dist/build/System/Console/CmdArgs/Implicit/UI.p_o )527[13 of 25] Compiling System.Console.CmdArgs.Text ( System/Console/CmdArgs/Text.hs, dist/build/System/Console/CmdArgs/Text.p_o )528System/Console/CmdArgs/Text.hs:91:32: warning: [GHC-63394] [-Wx-partial]529 In the use of ‘head’530 (imported from Data.List, but defined in GHC.Internal.List):531 "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"."532 |53391 | cs = map (\x -> (fst $ head x, map maximum $ transpose $ map snd x)) $534 | ^^^^535536[14 of 25] Compiling System.Console.CmdArgs.Explicit.Help ( System/Console/CmdArgs/Explicit/Help.hs, dist/build/System/Console/CmdArgs/Explicit/Help.p_o )537System/Console/CmdArgs/Explicit/Help.hs:83:59: warning: [GHC-63394] [-Wx-partial]538 In the use of ‘head’539 (imported from Data.List, but defined in GHC.Internal.List):540 "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"."541 |54283 | helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"]543 | ^^^^544545System/Console/CmdArgs/Explicit/Help.hs:84:57: warning: [GHC-63394] [-Wx-partial]546 In the use of ‘head’547 (imported from Data.List, but defined in GHC.Internal.List):548 "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"."549 |55084 | helpText pre HelpFormatZsh x = map Line $ completeZsh $ head $ modeNames x ++ ["unknown"]551 | ^^^^552553System/Console/CmdArgs/Explicit/Help.hs:154:46: warning: [GHC-63394] [-Wx-partial]554 In the use of ‘head’555 (imported from Data.List, but defined in GHC.Internal.List):556 "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"."557 |558154 | add x y = if null x then x else (head x ++ y) : tail x559 | ^^^^560561System/Console/CmdArgs/Explicit/Help.hs:154:61: warning: [GHC-63394] [-Wx-partial]562 In the use of ‘tail’563 (imported from Data.List, but defined in GHC.Internal.List):564 "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"."565 |566154 | add x y = if null x then x else (head x ++ y) : tail x567 | ^^^^568569[15 of 25] Compiling System.Console.CmdArgs.Verbosity ( System/Console/CmdArgs/Verbosity.hs, dist/build/System/Console/CmdArgs/Verbosity.p_o )570[16 of 25] Compiling System.Console.CmdArgs.Implicit.Type ( System/Console/CmdArgs/Implicit/Type.hs, dist/build/System/Console/CmdArgs/Implicit/Type.p_o )571[17 of 25] Compiling System.Console.CmdArgs.Explicit ( System/Console/CmdArgs/Explicit.hs, dist/build/System/Console/CmdArgs/Explicit.p_o )572System/Console/CmdArgs/Explicit.hs:112:79: warning: [GHC-63394] [-Wx-partial]573 In the use of ‘head’574 (imported from Prelude, but defined in GHC.Internal.List):575 "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"."576 |577112 | let var = mplus (lookup ("CMDARGS_HELPER_" ++ show (map toUpper $ head $ modeNames m ++ [nam])) env)578 | ^^^^579580[18 of 25] Compiling System.Console.CmdArgs.Implicit.Reader ( System/Console/CmdArgs/Implicit/Reader.hs, dist/build/System/Console/CmdArgs/Implicit/Reader.p_o )581System/Console/CmdArgs/Implicit/Reader.hs:35:16: warning: [GHC-63394] [-Wx-partial]582 In the use of ‘head’583 (imported from Data.List, but defined in GHC.Internal.List):584 "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"."585 |58635 | let down = head . children587 | ^^^^588589System/Console/CmdArgs/Implicit/Reader.hs:82:42: warning: [GHC-63394] [-Wx-partial]590 In the use of ‘head’591 (imported from Data.List, but defined in GHC.Internal.List):592 "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"."593 |59482 | | otherwise = Right $ snd $ head ys595 | ^^^^596597System/Console/CmdArgs/Implicit/Reader.hs:92:67: warning: [GHC-63394] [-Wx-partial]598 In the use of ‘head’599 (imported from Data.List, but defined in GHC.Internal.List):600 "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"."601 |60292 | if n == 1 then fmap (recompose x . return) $ readerRead_ (head $ filter ((==) 1 . readerParts) rs) s603 | ^^^^604605[19 of 25] Compiling System.Console.CmdArgs.Implicit.Local ( System/Console/CmdArgs/Implicit/Local.hs, dist/build/System/Console/CmdArgs/Implicit/Local.p_o )606System/Console/CmdArgs/Implicit/Local.hs:120:58: warning: [GHC-63394] [-Wx-partial]607 In the use of ‘head’608 (imported from Data.List, but defined in GHC.Internal.List):609 "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"."610 |611120 | where prog = map toLower $ typeShell $ fromCapture $ head xs612 | ^^^^613614System/Console/CmdArgs/Implicit/Local.hs:220:24: warning: [GHC-63394] [-Wx-partial]615 In the use of ‘head’616 (imported from Data.List, but defined in GHC.Internal.List):617 "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"."618 |619220 | flagAnn a x = errFlag (head $ words $ show x) $ show a620 | ^^^^621622[20 of 25] Compiling System.Console.CmdArgs.Implicit.Reform ( System/Console/CmdArgs/Implicit/Reform.hs, dist/build/System/Console/CmdArgs/Implicit/Reform.p_o )623[21 of 25] Compiling System.Console.CmdArgs.Implicit.Global ( System/Console/CmdArgs/Implicit/Global.hs, dist/build/System/Console/CmdArgs/Implicit/Global.p_o )624System/Console/CmdArgs/Implicit/Global.hs:35:38: warning: [GHC-63394] [-Wx-partial]625 In the use of ‘head’626 (imported from Data.List, but defined in GHC.Internal.List):627 "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"."628 |62935 | collapse x | length ms == 1 = (snd $ head ms){modeNames=[progProgram x]}630 | ^^^^631632System/Console/CmdArgs/Implicit/Global.hs:37:27: warning: [GHC-63394] [-Wx-partial]633 In the use of ‘head’634 (imported from Data.List, but defined in GHC.Internal.List):635 "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"."636 |63737 | | otherwise = (head $ map zeroMode auto ++ map (emptyMode . snd) ms)638 | ^^^^639640System/Console/CmdArgs/Implicit/Global.hs:143:19: warning: [GHC-63394] [-Wx-partial]641 In the use of ‘head’642 (imported from Data.List, but defined in GHC.Internal.List):643 "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"."644 |645143 | com = map head $ filter ((== length (progModes p)) . length) $ group $ sort646 | ^^^^647648System/Console/CmdArgs/Implicit/Global.hs:193:74: warning: [GHC-63394] [-Wx-partial]649 In the use of ‘head’650 (imported from Data.List, but defined in GHC.Internal.List):651 "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"."652 |653193 | mapModes1 f pre m = m{modeGroupModes = fmap (mapModes0 f (pre ++ head (modeNames m) ++ " ")) $ modeGroupModes m}654 | ^^^^655656System/Console/CmdArgs/Implicit/Global.hs:204:68: warning: [GHC-63394] [-Wx-partial]657 In the use of ‘head’658 (imported from Data.List, but defined in GHC.Internal.List):659 "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"."660 |661204 | f flg = if concatMap flagNames hlp == flagNames flg then head hlp else flg662 | ^^^^663664System/Console/CmdArgs/Implicit/Global.hs:218:65: warning: [GHC-63394] [-Wx-partial]665 In the use of ‘head’666 (imported from Data.List, but defined in GHC.Internal.List):667 "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"."668 |669218 | toMode xs x = x{modeMode = (modeMode x){modeNames=["["++head xs++"]" | modeDefault x] ++ xs}}670 | ^^^^671672[22 of 25] Compiling System.Console.CmdArgs.Implicit ( System/Console/CmdArgs/Implicit.hs, dist/build/System/Console/CmdArgs/Implicit.p_o )673[23 of 25] Compiling System.Console.CmdArgs.Quote ( System/Console/CmdArgs/Quote.hs, dist/build/System/Console/CmdArgs/Quote.p_o )674[24 of 25] Compiling System.Console.CmdArgs ( System/Console/CmdArgs.hs, dist/build/System/Console/CmdArgs.p_o )675[25 of 25] Compiling System.Console.CmdArgs.GetOpt ( System/Console/CmdArgs/GetOpt.hs, dist/build/System/Console/CmdArgs/GetOpt.p_o )676buildPhase completed in 48 seconds
checkPhase
677Package has no test suites.
haddockPhase
678Preprocessing library for cmdargs-0.10.22...679Running Haddock on library for cmdargs-0.10.22...680[ 1 of 25] Compiling Data.Generics.Any ( Data/Generics/Any.hs, /build/ghc801_0/ghc_4.o, /build/ghc801_0/ghc_4.dyn_o )681Data/Generics/Any.hs:21:22: warning: [GHC-63394] [-Wx-partial]682 In the use of ‘tail’683 (imported from Data.List, but defined in GHC.Internal.List):684 "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"."685 |68621 | where y = init $ tail x687 | ^^^^688689Data/Generics/Any.hs:102:32: warning: [GHC-63394] [-Wx-partial]690 In the use of ‘tail’691 (imported from Data.List, but defined in GHC.Internal.List):692 "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"."693 |694102 | put $ tail cs695 | ^^^^696697Data/Generics/Any.hs:103:45: warning: [GHC-63394] [-Wx-partial]698 In the use of ‘head’699 (imported from Data.List, but defined in GHC.Internal.List):700 "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"."701 |702103 | return $ fromAny $ head cs703 | ^^^^704705[ 2 of 25] Compiling Data.Generics.Any.Prelude ( Data/Generics/Any/Prelude.hs, /build/ghc801_0/ghc_6.o, /build/ghc801_0/ghc_6.dyn_o )706[ 3 of 25] Compiling System.Console.CmdArgs.Annotate ( System/Console/CmdArgs/Annotate.hs, /build/ghc801_0/ghc_8.o, /build/ghc801_0/ghc_8.dyn_o )707System/Console/CmdArgs/Annotate.hs:81:22: warning: [GHC-63394] [-Wx-partial]708 In the use of ‘head’709 (imported from Data.List, but defined in GHC.Internal.List):710 "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"."711 |71281 | return $ head $713 | ^^^^714715System/Console/CmdArgs/Annotate.hs:148:14: warning: [GHC-63394] [-Wx-partial]716 In the use of ‘head’717 (imported from Data.List, but defined in GHC.Internal.List):718 "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"."719 |720148 | return $ head xs721 | ^^^^722723[ 4 of 25] Compiling System.Console.CmdArgs.Default ( System/Console/CmdArgs/Default.hs, /build/ghc801_0/ghc_10.o, /build/ghc801_0/ghc_10.dyn_o )724[ 5 of 25] Compiling System.Console.CmdArgs.Explicit.ExpandArgsAt ( System/Console/CmdArgs/Explicit/ExpandArgsAt.hs, /build/ghc801_0/ghc_16.o, /build/ghc801_0/ghc_16.dyn_o )725[ 6 of 25] Compiling System.Console.CmdArgs.Explicit.SplitJoin ( System/Console/CmdArgs/Explicit/SplitJoin.hs, /build/ghc801_0/ghc_22.o, /build/ghc801_0/ghc_22.dyn_o )726[ 7 of 25] Compiling System.Console.CmdArgs.Explicit.Type ( System/Console/CmdArgs/Explicit/Type.hs, /build/ghc801_0/ghc_24.o, /build/ghc801_0/ghc_24.dyn_o )727[ 8 of 25] Compiling System.Console.CmdArgs.Explicit.Process ( System/Console/CmdArgs/Explicit/Process.hs, /build/ghc801_0/ghc_20.o, /build/ghc801_0/ghc_20.dyn_o )728System/Console/CmdArgs/Explicit/Process.hs:74:44: warning: [GHC-63394] [-Wx-partial]729 In the use of ‘tail’730 (imported from Data.List, but defined in GHC.Internal.List):731 "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"."732 |73374 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys734 | ^^^^735736System/Console/CmdArgs/Explicit/Process.hs:74:72: warning: [GHC-63394] [-Wx-partial]737 In the use of ‘head’738 (imported from Data.List, but defined in GHC.Internal.List):739 "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"."740 |74174 | | null b -> upd s{args=tail ys} $ flagValue flag $ head ys742 | ^^^^743744System/Console/CmdArgs/Explicit/Process.hs:75:61: warning: [GHC-63394] [-Wx-partial]745 In the use of ‘tail’746 (imported from Data.List, but defined in GHC.Internal.List):747 "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"."748 |74975 | | otherwise -> upd s $ flagValue flag $ tail b750 | ^^^^751752System/Console/CmdArgs/Explicit/Process.hs:77:55: warning: [GHC-63394] [-Wx-partial]753 In the use of ‘tail’754 (imported from Data.List, but defined in GHC.Internal.List):755 "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"."756 |75777 | | otherwise -> upd s $ flagValue flag $ tail b758 | ^^^^759760System/Console/CmdArgs/Explicit/Process.hs:91:46: warning: [GHC-63394] [-Wx-partial]761 In the use of ‘tail’762 (imported from Data.List, but defined in GHC.Internal.List):763 "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"."764 |76591 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys766 | ^^^^767768System/Console/CmdArgs/Explicit/Process.hs:91:74: warning: [GHC-63394] [-Wx-partial]769 In the use of ‘head’770 (imported from Data.List, but defined in GHC.Internal.List):771 "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"."772 |77391 | | null xs -> upd s_{args=tail ys} $ flagValue flag $ head ys774 | ^^^^775776System/Console/CmdArgs/Explicit/Process.hs:92:99: warning: [GHC-63394] [-Wx-partial]777 In the use of ‘tail’778 (imported from Data.List, but defined in GHC.Internal.List):779 "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"."780 |78192 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs782 | ^^^^783784System/Console/CmdArgs/Explicit/Process.hs:94:101: warning: [GHC-63394] [-Wx-partial]785 In the use of ‘tail’786 (imported from Data.List, but defined in GHC.Internal.List):787 "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"."788 |78994 | | otherwise -> upd s_{args=ys} $ flagValue flag $ if "=" `isPrefixOf` xs then tail xs else xs790 | ^^^^791792System/Console/CmdArgs/Explicit/Process.hs:95:87: warning: [GHC-63394] [-Wx-partial]793 In the use of ‘tail’794 (imported from Data.List, but defined in GHC.Internal.List):795 "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"."796 |79795 | FlagOptRare x | "=" `isPrefixOf` xs -> upd s_{args=ys} $ flagValue flag $ tail xs798 | ^^^^799800System/Console/CmdArgs/Explicit/Process.hs:149:22: warning: [GHC-63394] [-Wx-partial]801 In the use of ‘head’802 (imported from Data.List, but defined in GHC.Internal.List):803 "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"."804 |805149 | match op = [(head ys,v) | (xs,v) <- names, let ys = filter (op value) xs, ys /= []]806 | ^^^^807808[ 9 of 25] Compiling System.Console.CmdArgs.Explicit.Complete ( System/Console/CmdArgs/Explicit/Complete.hs, /build/ghc801_0/ghc_14.o, /build/ghc801_0/ghc_14.dyn_o )809System/Console/CmdArgs/Explicit/Complete.hs:52:15: warning: [GHC-63394] [-Wx-partial]810 In the use of ‘head’811 (imported from Data.List, but defined in GHC.Internal.List):812 "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"."813 |81452 | now = head $ next ++ [""]815 | ^^^^816817[10 of 25] Compiling System.Console.CmdArgs.Helper ( System/Console/CmdArgs/Helper.hs, /build/ghc801_0/ghc_26.o, /build/ghc801_0/ghc_26.dyn_o )818[11 of 25] Compiling System.Console.CmdArgs.Implicit.Ann ( System/Console/CmdArgs/Implicit/Ann.hs, /build/ghc801_0/ghc_30.o, /build/ghc801_0/ghc_30.dyn_o )819[12 of 25] Compiling System.Console.CmdArgs.Implicit.UI ( System/Console/CmdArgs/Implicit/UI.hs, /build/ghc801_0/ghc_42.o, /build/ghc801_0/ghc_42.dyn_o )820[13 of 25] Compiling System.Console.CmdArgs.Text ( System/Console/CmdArgs/Text.hs, /build/ghc801_0/ghc_44.o, /build/ghc801_0/ghc_44.dyn_o )821System/Console/CmdArgs/Text.hs:91:32: warning: [GHC-63394] [-Wx-partial]822 In the use of ‘head’823 (imported from Data.List, but defined in GHC.Internal.List):824 "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"."825 |82691 | cs = map (\x -> (fst $ head x, map maximum $ transpose $ map snd x)) $827 | ^^^^828829[14 of 25] Compiling System.Console.CmdArgs.Explicit.Help ( System/Console/CmdArgs/Explicit/Help.hs, /build/ghc801_0/ghc_18.o, /build/ghc801_0/ghc_18.dyn_o )830System/Console/CmdArgs/Explicit/Help.hs:83:59: warning: [GHC-63394] [-Wx-partial]831 In the use of ‘head’832 (imported from Data.List, but defined in GHC.Internal.List):833 "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"."834 |83583 | helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"]836 | ^^^^837838System/Console/CmdArgs/Explicit/Help.hs:84:57: warning: [GHC-63394] [-Wx-partial]839 In the use of ‘head’840 (imported from Data.List, but defined in GHC.Internal.List):841 "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"."842 |84384 | helpText pre HelpFormatZsh x = map Line $ completeZsh $ head $ modeNames x ++ ["unknown"]844 | ^^^^845846System/Console/CmdArgs/Explicit/Help.hs:154:46: warning: [GHC-63394] [-Wx-partial]847 In the use of ‘head’848 (imported from Data.List, but defined in GHC.Internal.List):849 "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"."850 |851154 | add x y = if null x then x else (head x ++ y) : tail x852 | ^^^^853854System/Console/CmdArgs/Explicit/Help.hs:154:61: warning: [GHC-63394] [-Wx-partial]855 In the use of ‘tail’856 (imported from Data.List, but defined in GHC.Internal.List):857 "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"."858 |859154 | add x y = if null x then x else (head x ++ y) : tail x860 | ^^^^861862[15 of 25] Compiling System.Console.CmdArgs.Verbosity ( System/Console/CmdArgs/Verbosity.hs, /build/ghc801_0/ghc_46.o, /build/ghc801_0/ghc_46.dyn_o )863[16 of 25] Compiling System.Console.CmdArgs.Implicit.Type ( System/Console/CmdArgs/Implicit/Type.hs, /build/ghc801_0/ghc_40.o, /build/ghc801_0/ghc_40.dyn_o )864[17 of 25] Compiling System.Console.CmdArgs.Explicit ( System/Console/CmdArgs/Explicit.hs, /build/ghc801_0/ghc_12.o, /build/ghc801_0/ghc_12.dyn_o )865System/Console/CmdArgs/Explicit.hs:112:79: warning: [GHC-63394] [-Wx-partial]866 In the use of ‘head’867 (imported from Prelude, but defined in GHC.Internal.List):868 "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"."869 |870112 | let var = mplus (lookup ("CMDARGS_HELPER_" ++ show (map toUpper $ head $ modeNames m ++ [nam])) env)871 | ^^^^872873[18 of 25] Compiling System.Console.CmdArgs.Implicit.Reader ( System/Console/CmdArgs/Implicit/Reader.hs, /build/ghc801_0/ghc_36.o, /build/ghc801_0/ghc_36.dyn_o )874System/Console/CmdArgs/Implicit/Reader.hs:35:16: warning: [GHC-63394] [-Wx-partial]875 In the use of ‘head’876 (imported from Data.List, but defined in GHC.Internal.List):877 "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"."878 |87935 | let down = head . children880 | ^^^^881882System/Console/CmdArgs/Implicit/Reader.hs:82:42: warning: [GHC-63394] [-Wx-partial]883 In the use of ‘head’884 (imported from Data.List, but defined in GHC.Internal.List):885 "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"."886 |88782 | | otherwise = Right $ snd $ head ys888 | ^^^^889890System/Console/CmdArgs/Implicit/Reader.hs:92:67: warning: [GHC-63394] [-Wx-partial]891 In the use of ‘head’892 (imported from Data.List, but defined in GHC.Internal.List):893 "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"."894 |89592 | if n == 1 then fmap (recompose x . return) $ readerRead_ (head $ filter ((==) 1 . readerParts) rs) s896 | ^^^^897898[19 of 25] Compiling System.Console.CmdArgs.Implicit.Local ( System/Console/CmdArgs/Implicit/Local.hs, /build/ghc801_0/ghc_34.o, /build/ghc801_0/ghc_34.dyn_o )899System/Console/CmdArgs/Implicit/Local.hs:120:58: warning: [GHC-63394] [-Wx-partial]900 In the use of ‘head’901 (imported from Data.List, but defined in GHC.Internal.List):902 "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"."903 |904120 | where prog = map toLower $ typeShell $ fromCapture $ head xs905 | ^^^^906907System/Console/CmdArgs/Implicit/Local.hs:220:24: warning: [GHC-63394] [-Wx-partial]908 In the use of ‘head’909 (imported from Data.List, but defined in GHC.Internal.List):910 "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"."911 |912220 | flagAnn a x = errFlag (head $ words $ show x) $ show a913 | ^^^^914915[20 of 25] Compiling System.Console.CmdArgs.Implicit.Reform ( System/Console/CmdArgs/Implicit/Reform.hs, /build/ghc801_0/ghc_38.o, /build/ghc801_0/ghc_38.dyn_o )916[21 of 25] Compiling System.Console.CmdArgs.Implicit.Global ( System/Console/CmdArgs/Implicit/Global.hs, /build/ghc801_0/ghc_32.o, /build/ghc801_0/ghc_32.dyn_o )917System/Console/CmdArgs/Implicit/Global.hs:35:38: warning: [GHC-63394] [-Wx-partial]918 In the use of ‘head’919 (imported from Data.List, but defined in GHC.Internal.List):920 "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"."921 |92235 | collapse x | length ms == 1 = (snd $ head ms){modeNames=[progProgram x]}923 | ^^^^924925System/Console/CmdArgs/Implicit/Global.hs:37:27: warning: [GHC-63394] [-Wx-partial]926 In the use of ‘head’927 (imported from Data.List, but defined in GHC.Internal.List):928 "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"."929 |93037 | | otherwise = (head $ map zeroMode auto ++ map (emptyMode . snd) ms)931 | ^^^^932933System/Console/CmdArgs/Implicit/Global.hs:143:19: warning: [GHC-63394] [-Wx-partial]934 In the use of ‘head’935 (imported from Data.List, but defined in GHC.Internal.List):936 "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"."937 |938143 | com = map head $ filter ((== length (progModes p)) . length) $ group $ sort939 | ^^^^940941System/Console/CmdArgs/Implicit/Global.hs:193:74: warning: [GHC-63394] [-Wx-partial]942 In the use of ‘head’943 (imported from Data.List, but defined in GHC.Internal.List):944 "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"."945 |946193 | mapModes1 f pre m = m{modeGroupModes = fmap (mapModes0 f (pre ++ head (modeNames m) ++ " ")) $ modeGroupModes m}947 | ^^^^948949System/Console/CmdArgs/Implicit/Global.hs:204:68: warning: [GHC-63394] [-Wx-partial]950 In the use of ‘head’951 (imported from Data.List, but defined in GHC.Internal.List):952 "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"."953 |954204 | f flg = if concatMap flagNames hlp == flagNames flg then head hlp else flg955 | ^^^^956957System/Console/CmdArgs/Implicit/Global.hs:218:65: warning: [GHC-63394] [-Wx-partial]958 In the use of ‘head’959 (imported from Data.List, but defined in GHC.Internal.List):960 "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"."961 |962218 | toMode xs x = x{modeMode = (modeMode x){modeNames=["["++head xs++"]" | modeDefault x] ++ xs}}963 | ^^^^964965[22 of 25] Compiling System.Console.CmdArgs.Implicit ( System/Console/CmdArgs/Implicit.hs, /build/ghc801_0/ghc_28.o, /build/ghc801_0/ghc_28.dyn_o )966[23 of 25] Compiling System.Console.CmdArgs.Quote ( System/Console/CmdArgs/Quote.hs, nothing )967[24 of 25] Compiling System.Console.CmdArgs ( System/Console/CmdArgs.hs, nothing )968[25 of 25] Compiling System.Console.CmdArgs.GetOpt ( System/Console/CmdArgs/GetOpt.hs, nothing )969Haddock coverage:970Warning: 'RecConError' is ambiguous. It is defined971 * in ‘GHC.Internal.Control.Exception.Base’972 * in ‘GHC.Internal.Control.Exception.Base’973 You may be able to disambiguate the identifier by qualifying it or974 by specifying the type/value namespace explicitly.975 Defaulting to the one defined in ‘GHC.Internal.Control.Exception.Base’976 100% ( 17 / 17) in 'System.Console.CmdArgs.Annotate'977 100% ( 2 / 2) in 'System.Console.CmdArgs.Default'978Warning: 'getArgs' is out of scope.979 If you qualify the identifier, haddock can try to link it anyway.980Warning: 'Mode' is ambiguous. It is defined981 * at System/Console/CmdArgs/Explicit/Type.hs:81:15982 * at System/Console/CmdArgs/Explicit/Type.hs:81:1983 You may be able to disambiguate the identifier by qualifying it or984 by specifying the type/value namespace explicitly.985 Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:81:1986Warning: 'helpText' is out of scope.987 If you qualify the identifier, haddock can try to link it anyway.988Warning: 'expandArgsAt' is out of scope.989 If you qualify the identifier, haddock can try to link it anyway.990Warning: 'Mode' is ambiguous. It is defined991 * at System/Console/CmdArgs/Explicit/Type.hs:81:15992 * at System/Console/CmdArgs/Explicit/Type.hs:81:1993 You may be able to disambiguate the identifier by qualifying it or994 by specifying the type/value namespace explicitly.995 Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:81:1996 100% ( 8 / 8) in 'System.Console.CmdArgs.Helper'997Warning: 'flag' is out of scope.998 If you qualify the identifier, haddock can try to link it anyway.999 100% ( 5 / 5) in 'System.Console.CmdArgs.Text'1000 100% ( 8 / 8) in 'System.Console.CmdArgs.Verbosity'1001Warning: 'Mode' is ambiguous. It is defined1002 * at System/Console/CmdArgs/Explicit/Type.hs:81:151003 * at System/Console/CmdArgs/Explicit/Type.hs:81:11004 You may be able to disambiguate the identifier by qualifying it or1005 by specifying the type/value namespace explicitly.1006 Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:81:11007Warning: 'Group' is ambiguous. It is defined1008 * at System/Console/CmdArgs/Explicit/Type.hs:42:161009 * at System/Console/CmdArgs/Explicit/Type.hs:42:11010 You may be able to disambiguate the identifier by qualifying it or1011 by specifying the type/value namespace explicitly.1012 Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:42:11013 100% ( 48 / 48) in 'System.Console.CmdArgs.Explicit'1014Warning: 'process' is out of scope.1015 If you qualify the identifier, haddock can try to link it anyway.1016Warning: 'CmdArgs' is ambiguous. It is defined1017 * at System/Console/CmdArgs/Implicit/Type.hs:19:181018 * at System/Console/CmdArgs/Implicit/Type.hs:19:11019 You may be able to disambiguate the identifier by qualifying it or1020 by specifying the type/value namespace explicitly.1021 Defaulting to the one defined at System/Console/CmdArgs/Implicit/Type.hs:19:11022 100% ( 50 / 50) in 'System.Console.CmdArgs.Implicit'1023 100% ( 9 / 9) in 'System.Console.CmdArgs.Quote'1024 100% ( 2 / 2) in 'System.Console.CmdArgs'1025Warning: 'Mode' is ambiguous. It is defined1026 * at System/Console/CmdArgs/Explicit/Type.hs:81:151027 * at System/Console/CmdArgs/Explicit/Type.hs:81:11028 You may be able to disambiguate the identifier by qualifying it or1029 by specifying the type/value namespace explicitly.1030 Defaulting to the one defined at System/Console/CmdArgs/Explicit/Type.hs:81:11031 100% ( 8 / 8) in 'System.Console.CmdArgs.GetOpt'1032Warning: System.Console.CmdArgs.Implicit: could not find link destinations for: 1033 - System.Console.CmdArgs.Implicit.Type.CmdArgsPrivate1034Documentation created: dist/doc/html/cmdargs/,1035dist/doc/html/cmdargs/cmdargs.txt1036haddockPhase completed in 1 minutes 9 seconds
installPhase
1037Installing library in /nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/lib/ghc-9.10.3/lib/aarch64-linux-ghc-9.10.3-6fbb/cmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM
fixupPhase
1038shrinking RPATHs of ELF executables and libraries in /nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.221039shrinking /nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/lib/ghc-9.10.3/lib/aarch64-linux-ghc-9.10.3-6fbb/libHScmdargs-0.10.22-Kob5rAL0y9G8uRBw1CI6oM-ghc9.10.3.so1040checking for references to /build/ in /nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22...1041patching script interpreter paths in /nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.221042stripping (with command strip and flags -S -p) in /nix/store/p7yfij2l9w7dgq11vqzrcvd12rrlm5ax-cmdargs-0.10.22/lib1043shrinking RPATHs of ELF executables and libraries in /nix/store/hvfmb8c0717h7k0z64a2cnqjn0xg0m4b-cmdargs-0.10.22-doc1044checking for references to /build/ in /nix/store/hvfmb8c0717h7k0z64a2cnqjn0xg0m4b-cmdargs-0.10.22-doc...1045patching script interpreter paths in /nix/store/hvfmb8c0717h7k0z64a2cnqjn0xg0m4b-cmdargs-0.10.22-doc