Running phase: setupCompilerEnvironmentPhase Build with /nix/store/pjwvkj1f7flgrlc5jxywfwi71n6yrrpx-ghc-binary-9.8.4. Running phase: unpackPhase unpacking source archive /nix/store/p3x0qg2p04ksw8nh4602070jz5pcxpvw-happy-lib-2.1.7.tar.gz source root is happy-lib-2.1.7 setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file "happy-lib-2.1.7/tabular/src/Happy/Tabular/NameSet.hs" Running phase: patchPhase Running phase: compileBuildDriverPhase setupCompileFlags: -package-db=/build/tmp.By7qi1StY1/setup-package.conf.d -threaded [1 of 2] Compiling Main ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /build/tmp.By7qi1StY1/Main.o ) [2 of 2] Linking Setup Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase configureFlags: --verbose --prefix=/nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7 --libdir=$prefix/lib/$compiler/lib --libsubdir=$abi/$libname --datadir=/nix/store/9kqhvzml3w1v9173n736s9bwxkw07gn4-happy-lib-2.1.7-data/share/ghc-9.8.4 --with-gcc=gcc --package-db=/build/tmp.By7qi1StY1/package.conf.d --ghc-option=-j16 --ghc-option=+RTS --ghc-option=-A64M --ghc-option=-RTS --disable-library-profiling --disable-profiling --disable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --enable-split-sections --enable-library-stripping --enable-executable-stripping Using Parsec parser Configuring happy-lib-2.1.7... Dependency array >=0.5: using array-0.5.8.0 Dependency base >=4.9 && <5: using base-4.19.2.0 Dependency containers >=0.4.2: using containers-0.6.8 Dependency happy-lib:{backend-glr, backend-lalr, frontend, grammar, tabular}: using happy-lib-2.1.7 Dependency happy-lib:{backend-glr, backend-lalr, frontend, grammar, tabular}: using happy-lib-2.1.7 Dependency happy-lib:{backend-glr, backend-lalr, frontend, grammar, tabular}: using happy-lib-2.1.7 Dependency happy-lib:{backend-glr, backend-lalr, frontend, grammar, tabular}: using happy-lib-2.1.7 Dependency happy-lib:{backend-glr, backend-lalr, frontend, grammar, tabular}: using happy-lib-2.1.7 Dependency mtl >=2.2.1: using mtl-2.3.1 Dependency transformers >=0.5.6.2: using transformers-0.6.1.0 Dependency array: using array-0.5.8.0 Dependency base <5: using base-4.19.2.0 Dependency array: using array-0.5.8.0 Dependency base <5: using base-4.19.2.0 Dependency containers: using containers-0.6.8 Dependency happy-lib:grammar: using happy-lib-2.1.7 Dependency mtl: using mtl-2.3.1 Dependency transformers: using transformers-0.6.1.0 Dependency array: using array-0.5.8.0 Dependency base <5: using base-4.19.2.0 Dependency containers: using containers-0.6.8 Dependency happy-lib:grammar: using happy-lib-2.1.7 Dependency array: using array-0.5.8.0 Dependency base <5: using base-4.19.2.0 Dependency happy-lib:{grammar, tabular}: using happy-lib-2.1.7 Dependency happy-lib:{grammar, tabular}: using happy-lib-2.1.7 Dependency array: using array-0.5.8.0 Dependency base <5: using base-4.19.2.0 Dependency happy-lib:{grammar, tabular}: using happy-lib-2.1.7 Dependency happy-lib:{grammar, tabular}: using happy-lib-2.1.7 Source component graph: component lib:grammar component lib:tabular dependency lib:grammar component lib:frontend dependency lib:grammar component lib:backend-lalr dependency lib:grammar dependency lib:tabular component lib:backend-glr dependency lib:grammar dependency lib:tabular component lib dependency lib:backend-glr dependency lib:backend-lalr dependency lib:frontend dependency lib:grammar dependency lib:tabular Configured component graph: component happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 component happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include containers-0.6.8-b1e0 include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar component happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include containers-0.6.8-b1e0 include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include mtl-2.3.1-7422 include transformers-0.6.1.0-4cb8 component happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular component happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular component happy-lib-2.1.7-F5MuOztLgWSHWsOdIyPFMo include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include containers-0.6.8-b1e0 include happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr include happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr include happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular include mtl-2.3.1-7422 include transformers-0.6.1.0-4cb8 Linked component graph: unit happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 Happy.Grammar=happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar:Happy.Grammar,Happy.Grammar.ExpressionWithHole=happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar:Happy.Grammar.ExpressionWithHole unit happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include containers-0.6.8-b1e0 include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar Happy.Paths=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Paths_happy_lib,Happy.Tabular=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular,Happy.Tabular.First=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular.First,Happy.Tabular.Info=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular.Info,Happy.Tabular.LALR=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular.LALR,Happy.Tabular.NameSet=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular.NameSet,Paths_happy_lib=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Paths_happy_lib unit happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include containers-0.6.8-b1e0 include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include mtl-2.3.1-7422 include transformers-0.6.1.0-4cb8 Happy.Frontend=happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend:Happy.Frontend,Happy.Frontend.AbsSyn=happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend:Happy.Frontend.AbsSyn,Happy.Frontend.Mangler=happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend:Happy.Frontend.Mangler,Happy.Frontend.PrettyGrammar=happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend:Happy.Frontend.PrettyGrammar unit happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular Happy.Backend.LALR=happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr:Happy.Backend.LALR,Happy.Backend.LALR.ProduceCode=happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr:Happy.Backend.LALR.ProduceCode unit happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular Happy.Backend.GLR=happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr:Happy.Backend.GLR,Happy.Backend.GLR.ProduceCode=happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr:Happy.Backend.GLR.ProduceCode unit happy-lib-2.1.7-F5MuOztLgWSHWsOdIyPFMo include array-0.5.8.0-dcb1 include base-4.19.2.0-9f38 include containers-0.6.8-b1e0 include happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr include happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr include happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend include happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar include happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular include mtl-2.3.1-7422 include transformers-0.6.1.0-4cb8 Happy.Backend.GLR=happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr:Happy.Backend.GLR,Happy.Backend.GLR.ProduceCode=happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr:Happy.Backend.GLR.ProduceCode,Happy.Backend.LALR=happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr:Happy.Backend.LALR,Happy.Backend.LALR.ProduceCode=happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr:Happy.Backend.LALR.ProduceCode,Happy.Frontend=happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend:Happy.Frontend,Happy.Frontend.AbsSyn=happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend:Happy.Frontend.AbsSyn,Happy.Frontend.Mangler=happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend:Happy.Frontend.Mangler,Happy.Frontend.PrettyGrammar=happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend:Happy.Frontend.PrettyGrammar,Happy.Grammar=happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar:Happy.Grammar,Happy.Grammar.ExpressionWithHole=happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar:Happy.Grammar.ExpressionWithHole,Happy.Tabular=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular,Happy.Tabular.First=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular.First,Happy.Tabular.Info=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular.Info,Happy.Tabular.LALR=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular.LALR,Happy.Tabular.NameSet=happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular:Happy.Tabular.NameSet Ready component graph: definite happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar depends array-0.5.8.0-dcb1 depends base-4.19.2.0-9f38 definite happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular depends array-0.5.8.0-dcb1 depends base-4.19.2.0-9f38 depends containers-0.6.8-b1e0 depends happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar definite happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr depends array-0.5.8.0-dcb1 depends base-4.19.2.0-9f38 depends happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar depends happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular definite happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend depends array-0.5.8.0-dcb1 depends base-4.19.2.0-9f38 depends containers-0.6.8-b1e0 depends happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar depends mtl-2.3.1-7422 depends transformers-0.6.1.0-4cb8 definite happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr depends array-0.5.8.0-dcb1 depends base-4.19.2.0-9f38 depends happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar depends happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular definite happy-lib-2.1.7-F5MuOztLgWSHWsOdIyPFMo depends array-0.5.8.0-dcb1 depends base-4.19.2.0-9f38 depends containers-0.6.8-b1e0 depends happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr depends happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr depends happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend depends happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar depends happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular depends mtl-2.3.1-7422 depends transformers-0.6.1.0-4cb8 Using Cabal-3.10.3.0 compiled by ghc-9.8 Using compiler: ghc-9.8.4 Using install prefix: /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7 Executables installed in: /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/bin Libraries installed in: /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7-F5MuOztLgWSHWsOdIyPFMo Dynamic Libraries installed in: /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4 Private executables installed in: /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/libexec/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7 Data files installed in: /nix/store/9kqhvzml3w1v9173n736s9bwxkw07gn4-happy-lib-2.1.7-data/share/ghc-9.8.4/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7 Documentation installed in: /nix/store/9kqhvzml3w1v9173n736s9bwxkw07gn4-happy-lib-2.1.7-data/share/ghc-9.8.4/doc/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7 Configuration files installed in: /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/etc No alex found Using ar found on system at: /nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/ar No c2hs found No cpphs found No doctest found Using gcc version 15.2.0 given by user at: /nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/gcc Using ghc version 9.8.4 found on system at: /nix/store/pjwvkj1f7flgrlc5jxywfwi71n6yrrpx-ghc-binary-9.8.4/bin/ghc Using ghc-pkg version 9.8.4 found on system at: /nix/store/pjwvkj1f7flgrlc5jxywfwi71n6yrrpx-ghc-binary-9.8.4/bin/ghc-pkg-9.8.4 No ghcjs found No ghcjs-pkg found No greencard found Using haddock version 2.30.0 found on system at: /nix/store/pjwvkj1f7flgrlc5jxywfwi71n6yrrpx-ghc-binary-9.8.4/bin/haddock-ghc-9.8.4 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/pjwvkj1f7flgrlc5jxywfwi71n6yrrpx-ghc-binary-9.8.4/bin/hpc-ghc-9.8.4 Using hsc2hs version 0.68.10 found on system at: /nix/store/pjwvkj1f7flgrlc5jxywfwi71n6yrrpx-ghc-binary-9.8.4/bin/hsc2hs-ghc-9.8.4 Using hscolour version 1.25 found on system at: /nix/store/sy862bjhh1f1lb02qhsf6jpqii56s617-hscolour-1.25/bin/HsColour No jhc found Using ld found on system at: /nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/ld No pkg-config found Using runghc version 9.8.4 found on system at: /nix/store/pjwvkj1f7flgrlc5jxywfwi71n6yrrpx-ghc-binary-9.8.4/bin/runghc-9.8.4 Using strip version 2.46 found on system at: /nix/store/vdaz6sk455r8sbpi7wzaf9vlz5i9yyvx-gcc-wrapper-15.2.0/bin/strip Using tar found on system at: /nix/store/fq62mc3s8ddxgk1nvlbzly2zmr7v2cax-gnutar-1.35/bin/tar No uhc found Running phase: buildPhase Preprocessing library 'grammar' for happy-lib-2.1.7.. Building library 'grammar' for happy-lib-2.1.7.. [1 of 2] Compiling Happy.Grammar.ExpressionWithHole ( grammar/src/Happy/Grammar/ExpressionWithHole.hs, dist/build/grammar/Happy/Grammar/ExpressionWithHole.o ) [2 of 2] Compiling Happy.Grammar ( grammar/src/Happy/Grammar.lhs, dist/build/grammar/Happy/Grammar.o ) Preprocessing library 'tabular' for happy-lib-2.1.7.. Building library 'tabular' for happy-lib-2.1.7.. [1 of 6] Compiling Happy.Tabular.NameSet ( tabular/src/Happy/Tabular/NameSet.hs, dist/build/tabular/Happy/Tabular/NameSet.o ) [2 of 6] Compiling Happy.Tabular.First ( tabular/src/Happy/Tabular/First.lhs, dist/build/tabular/Happy/Tabular/First.o ) [3 of 6] Compiling Happy.Tabular.LALR ( tabular/src/Happy/Tabular/LALR.lhs, dist/build/tabular/Happy/Tabular/LALR.o ) tabular/src/Happy/Tabular/LALR.lhs:517:21: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 517 | > term_lim = (head terms,last terms) | ^^^^ [4 of 6] Compiling Happy.Tabular.Info ( tabular/src/Happy/Tabular/Info.lhs, dist/build/tabular/Happy/Tabular/Info.o ) [5 of 6] Compiling Happy.Tabular ( tabular/src/Happy/Tabular.lhs, dist/build/tabular/Happy/Tabular.o ) [6 of 6] Compiling Paths_happy_lib ( dist/build/tabular/autogen/Paths_happy_lib.hs, dist/build/tabular/Paths_happy_lib.o ) Preprocessing library 'backend-lalr' for happy-lib-2.1.7.. Building library 'backend-lalr' for happy-lib-2.1.7.. [1 of 2] Compiling Happy.Backend.LALR ( backend-lalr/src/Happy/Backend/LALR.hs, dist/build/backend-lalr/Happy/Backend/LALR.o ) backend-lalr/src/Happy/Backend/LALR.hs:14:29: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 14 | big_name = toUpper (head name') : tail name' | ^^^^ backend-lalr/src/Happy/Backend/LALR.hs:14:43: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 14 | big_name = toUpper (head name') : tail name' | ^^^^ [2 of 2] Compiling Happy.Backend.LALR.ProduceCode ( backend-lalr/src/Happy/Backend/LALR/ProduceCode.lhs, dist/build/backend-lalr/Happy/Backend/LALR/ProduceCode.o ) backend-lalr/src/Happy/Backend/LALR/ProduceCode.lhs:779:28: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 779 | > defaultAttr = fst (head $ attributes ag) | ^^^^ backend-lalr/src/Happy/Backend/LALR/ProduceCode.lhs:973:56: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 973 | > else fst (last acts'') - fst (head acts''), | ^^^^ backend-lalr/src/Happy/Backend/LALR/ProduceCode.lhs:1007:59: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 1007 | > else fst (last goto_vals) - fst (head goto_vals), | ^^^^ Preprocessing library 'frontend' for happy-lib-2.1.7.. Building library 'frontend' for happy-lib-2.1.7.. [ 1 of 13] Compiling Happy.Frontend.AbsSyn ( frontend/src/Happy/Frontend/AbsSyn.lhs, dist/build/frontend/Happy/Frontend/AbsSyn.o ) [ 2 of 13] Compiling Happy.Frontend.Mangler.Monad ( frontend/src/Happy/Frontend/Mangler/Monad.lhs, dist/build/frontend/Happy/Frontend/Mangler/Monad.o ) [ 3 of 13] Compiling Happy.Frontend.ParamRules ( frontend/src/Happy/Frontend/ParamRules.hs, dist/build/frontend/Happy/Frontend/ParamRules.o ) [ 4 of 13] Compiling Happy.Frontend.ParseMonad.Class ( frontend/src/Happy/Frontend/ParseMonad/Class.hs, dist/build/frontend/Happy/Frontend/ParseMonad/Class.o ) [ 5 of 13] Compiling Happy.Frontend.ParseMonad ( frontend/src/Happy/Frontend/ParseMonad.hs, dist/build/frontend/Happy/Frontend/ParseMonad.o ) [ 6 of 13] Compiling Happy.Frontend.Lexer ( frontend/src/Happy/Frontend/Lexer.lhs, dist/build/frontend/Happy/Frontend/Lexer.o ) [ 7 of 13] Compiling Happy.Frontend.AttrGrammar ( frontend/src/Happy/Frontend/AttrGrammar.lhs, dist/build/frontend/Happy/Frontend/AttrGrammar.o ) [ 8 of 13] Compiling Happy.Frontend.AttrGrammar.Parser ( frontend/src/Happy/Frontend/AttrGrammar/Parser.hs, dist/build/frontend/Happy/Frontend/AttrGrammar/Parser.o ) [ 9 of 13] Compiling Happy.Frontend.AttrGrammar.Mangler ( frontend/src/Happy/Frontend/AttrGrammar/Mangler.lhs, dist/build/frontend/Happy/Frontend/AttrGrammar/Mangler.o ) frontend/src/Happy/Frontend/AttrGrammar/Mangler.lhs:42:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 42 | > defaultAttr = head attrNames | ^^^^ frontend/src/Happy/Frontend/AttrGrammar/Mangler.lhs:106:54: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 106 | > (fst $ head l,[snd $ head l]) | ^^^^ frontend/src/Happy/Frontend/AttrGrammar/Mangler.lhs:106:68: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 106 | > (fst $ head l,[snd $ head l]) | ^^^^ frontend/src/Happy/Frontend/AttrGrammar/Mangler.lhs:107:48: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 107 | > (tail l) ) . | ^^^^ [10 of 13] Compiling Happy.Frontend.Mangler ( frontend/src/Happy/Frontend/Mangler.lhs, dist/build/frontend/Happy/Frontend/Mangler.o ) [11 of 13] Compiling Happy.Frontend.Parser ( frontend/src/Happy/Frontend/Parser.hs, dist/build/frontend/Happy/Frontend/Parser.o ) [12 of 13] Compiling Happy.Frontend ( frontend/src/Happy/Frontend.hs, dist/build/frontend/Happy/Frontend.o ) [13 of 13] Compiling Happy.Frontend.PrettyGrammar ( frontend/src/Happy/Frontend/PrettyGrammar.hs, dist/build/frontend/Happy/Frontend/PrettyGrammar.o ) Preprocessing library 'backend-glr' for happy-lib-2.1.7.. Building library 'backend-glr' for happy-lib-2.1.7.. [1 of 2] Compiling Happy.Backend.GLR ( backend-glr/src/Happy/Backend/GLR.hs, dist/build/backend-glr/Happy/Backend/GLR.o ) [2 of 2] Compiling Happy.Backend.GLR.ProduceCode ( backend-glr/src/Happy/Backend/GLR/ProduceCode.lhs, dist/build/backend-glr/Happy/Backend/GLR/ProduceCode.o ) backend-glr/src/Happy/Backend/GLR/ProduceCode.lhs:227:51: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 227 | > start_prod = token_names g ! (let (_,_,i,_) = head $ starts g in i) | ^^^^ backend-glr/src/Happy/Backend/GLR/ProduceCode.lhs:332:26: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 332 | > mkReds rs = "[" ++ tail (concat [ "," ++ mkRed r | LR'Reduce r _ <- rs ]) ++ "]" | ^^^^ Preprocessing library for happy-lib-2.1.7.. Building library for happy-lib-2.1.7.. Running phase: haddockPhase Running phase: installPhase Installing internal library grammar in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7-EKpbRZg7NRwBwBCpp7Z952-grammar Installing internal library tabular in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7-FaYvuLjnQKCbDwLYDWpkH-tabular Installing internal library backend-lalr in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7-HHaGfQ1QFUO8gFXvHCFjxI-backend-lalr Installing internal library frontend in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7-IceYVE32rKq7zs89eTKHdN-frontend Installing internal library backend-glr in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7-C7ebgrrJdFJ8vAuwcm9JDb-backend-glr Installing library in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4/happy-lib-2.1.7-F5MuOztLgWSHWsOdIyPFMo Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7 checking for references to /build/ in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7... patching script interpreter paths in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7 stripping (with command strip and flags -S -p) in /nix/store/h172n67q967118pfxk05c0k50nl9nb32-happy-lib-2.1.7/lib shrinking RPATHs of ELF executables and libraries in /nix/store/9kqhvzml3w1v9173n736s9bwxkw07gn4-happy-lib-2.1.7-data checking for references to /build/ in /nix/store/9kqhvzml3w1v9173n736s9bwxkw07gn4-happy-lib-2.1.7-data... patching script interpreter paths in /nix/store/9kqhvzml3w1v9173n736s9bwxkw07gn4-happy-lib-2.1.7-data