Resolving dependencies... Build profile: -w ghc-9.8.4 -O0 In order, the following will be built (use -v for more details): - call-stack-0.4.0 (lib:call-stack) (requires build) - ieee754-0.8.0 (lib:ieee754) (requires build) - language-c99-0.2.0 (lib:language-c99) (requires build) - HUnit-1.6.2.0 (lib:HUnit) (requires build) - language-c99-util-0.2.0 (lib:language-c99-util) (requires build) - test-framework-hunit-0.3.0.2 (lib:test-framework-hunit) (requires build) - language-c99-simple-0.3.0 (lib:language-c99-simple) (requires build) - copilot-c99-4.5 (first run) Configuring call-stack-0.4.0... Preprocessing library for call-stack-0.4.0.. Building library for call-stack-0.4.0.. [1 of 3] Compiling Data.SrcLoc ( src/Data/SrcLoc.hs, dist/build/Data/SrcLoc.o, dist/build/Data/SrcLoc.dyn_o ) [2 of 3] Compiling Data.CallStack ( src/Data/CallStack.hs, dist/build/Data/CallStack.o, dist/build/Data/CallStack.dyn_o ) [3 of 3] Compiling Paths_call_stack ( dist/build/autogen/Paths_call_stack.hs, dist/build/Paths_call_stack.o, dist/build/Paths_call_stack.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-1755487/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/call-stack-0.4.0-31951dc4e9db177e2ea89098d1122ced7b6da41fd279273945130bdfc91e7098/lib Warning: ieee754.cabal:29:34: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Configuring ieee754-0.8.0... Preprocessing library for ieee754-0.8.0.. Building library for ieee754-0.8.0.. [1 of 2] Compiling Numeric.IEEE ( Numeric/IEEE.hs, dist/build/Numeric/IEEE.o, dist/build/Numeric/IEEE.dyn_o ) [2 of 2] Compiling Data.AEq ( Data/AEq.hs, dist/build/Data/AEq.o, dist/build/Data/AEq.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-1755487/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/ieee754-0.8.0-537553520ad67afd8d79614b2caee56dcfd15d6074592730788107bfa6d9b65c/lib Configuring language-c99-0.2.0... Preprocessing library for language-c99-0.2.0.. Building library for language-c99-0.2.0.. [1 of 3] Compiling Language.C99.AST ( src/Language/C99/AST.hs, dist/build/Language/C99/AST.o, dist/build/Language/C99/AST.dyn_o ) [2 of 3] Compiling Language.C99 ( src/Language/C99.hs, dist/build/Language/C99.o, dist/build/Language/C99.dyn_o ) [3 of 3] Compiling Language.C99.Pretty ( src/Language/C99/Pretty.hs, dist/build/Language/C99/Pretty.o, dist/build/Language/C99/Pretty.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-1755487/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/language-c99-0.2.0-478fa5cef8cad613f566713fd11f9368dc488ed073c9c8b63cb639bf31274111/lib Configuring HUnit-1.6.2.0... Preprocessing library for HUnit-1.6.2.0.. Building library for HUnit-1.6.2.0.. [1 of 6] Compiling Paths_HUnit ( dist/build/autogen/Paths_HUnit.hs, dist/build/Paths_HUnit.o, dist/build/Paths_HUnit.dyn_o ) [2 of 6] Compiling Test.HUnit.Lang ( src/Test/HUnit/Lang.hs, dist/build/Test/HUnit/Lang.o, dist/build/Test/HUnit/Lang.dyn_o ) [3 of 6] Compiling Test.HUnit.Base ( src/Test/HUnit/Base.hs, dist/build/Test/HUnit/Base.o, dist/build/Test/HUnit/Base.dyn_o ) [4 of 6] Compiling Test.HUnit.Terminal ( src/Test/HUnit/Terminal.hs, dist/build/Test/HUnit/Terminal.o, dist/build/Test/HUnit/Terminal.dyn_o ) src/Test/HUnit/Terminal.hs:41:41: 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." | 41 | | otherwise = ta f (c:bs) (tail as) cs | ^^^^ [5 of 6] Compiling Test.HUnit.Text ( src/Test/HUnit/Text.hs, dist/build/Test/HUnit/Text.o, dist/build/Test/HUnit/Text.dyn_o ) [6 of 6] Compiling Test.HUnit ( src/Test/HUnit.hs, dist/build/Test/HUnit.o, dist/build/Test/HUnit.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-1755487/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/HUnit-1.6.2.0-aa8518921a665b3ce3b9f7f0c7a8a7fa42d03d10681bd5ecec8be730444183ec/lib Configuring language-c99-util-0.2.0... Preprocessing library for language-c99-util-0.2.0.. Building library for language-c99-util-0.2.0.. [1 of 4] Compiling Language.C99.Util.IsList ( src/Language/C99/Util/IsList.hs, dist/build/Language/C99/Util/IsList.o, dist/build/Language/C99/Util/IsList.dyn_o ) src/Language/C99/Util/IsList.hs:25:10: warning: [GHC-06201] [-Wmissing-methods] " No explicit implementation for toList " In the instance declaration for IsList ArgExprList | 25 | instance IsList ArgExprList where | ^^^^^^^^^^^^^^^^^^ src/Language/C99/Util/IsList.hs:30:10: warning: [GHC-06201] [-Wmissing-methods] " No explicit implementation for toList " In the instance declaration for IsList InitList | 30 | instance IsList InitList where | ^^^^^^^^^^^^^^^ src/Language/C99/Util/IsList.hs:37:10: warning: [GHC-06201] [-Wmissing-methods] " No explicit implementation for toList " In the instance declaration for IsList BlockItemList | 37 | instance IsList BlockItemList where | ^^^^^^^^^^^^^^^^^^^^ src/Language/C99/Util/IsList.hs:42:10: warning: [GHC-06201] [-Wmissing-methods] " No explicit implementation for toList " In the instance declaration for IsList TransUnit | 42 | instance IsList TransUnit where | ^^^^^^^^^^^^^^^^ src/Language/C99/Util/IsList.hs:47:10: warning: [GHC-06201] [-Wmissing-methods] " No explicit implementation for toList " In the instance declaration for IsList DeclnList | 47 | instance IsList DeclnList where | ^^^^^^^^^^^^^^^^ [2 of 4] Compiling Language.C99.Util.Wrap ( src/Language/C99/Util/Wrap.hs, dist/build/Language/C99/Util/Wrap.o, dist/build/Language/C99/Util/Wrap.dyn_o ) [3 of 4] Compiling Language.C99.Util.Expr ( src/Language/C99/Util/Expr.hs, dist/build/Language/C99/Util/Expr.o, dist/build/Language/C99/Util/Expr.dyn_o ) src/Language/C99/Util/Expr.hs:109:35: 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." | 109 | dec = takeWhile (/='e') $ tail $ dropWhile (/='.') ds | ^^^^ src/Language/C99/Util/Expr.hs:112:16: 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." | 112 | _ -> tail e | ^^^^ src/Language/C99/Util/Expr.hs:116:17: 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." | 116 | op = case head nat of | ^^^^ src/Language/C99/Util/Expr.hs:119:19: 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." | 119 | nat' = case head nat of | ^^^^ src/Language/C99/Util/Expr.hs:120:36: 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." | 120 | '-' -> digitseq $ digitsc (tail nat) | ^^^^ [4 of 4] Compiling Language.C99.Util ( src/Language/C99/Util.hs, dist/build/Language/C99/Util.o, dist/build/Language/C99/Util.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-1755487/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/language-c99-util-0.2.0-83befa84a3728436e5ef5b18cc2516000a166072535e289d45e3453efeb87e58/lib Warning: test-framework-hunit.cabal:33:61: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Warning: test-framework-hunit.cabal:30:53: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Warning: test-framework-hunit.cabal:28:73: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Warning: test-framework-hunit.cabal:28:114: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Configuring test-framework-hunit-0.3.0.2... Preprocessing library for test-framework-hunit-0.3.0.2.. Building library for test-framework-hunit-0.3.0.2.. [1 of 1] Compiling Test.Framework.Providers.HUnit ( Test/Framework/Providers/HUnit.hs, dist/build/Test/Framework/Providers/HUnit.o, dist/build/Test/Framework/Providers/HUnit.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-1755487/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/test-framework-hunit-0.3.0.2-feb7c74dcc2f10e2e632f6b4832d861f9b2e89a3c75adce4c58faa046da48083/lib Configuring language-c99-simple-0.3.0... Preprocessing library for language-c99-simple-0.3.0.. Building library for language-c99-simple-0.3.0.. [1 of 5] Compiling Language.C99.Simple.AST ( src/Language/C99/Simple/AST.hs, dist/build/Language/C99/Simple/AST.o, dist/build/Language/C99/Simple/AST.dyn_o ) [2 of 5] Compiling Language.C99.Simple.Expr ( src/Language/C99/Simple/Expr.hs, dist/build/Language/C99/Simple/Expr.o, dist/build/Language/C99/Simple/Expr.dyn_o ) [3 of 5] Compiling Language.C99.Simple.Util ( src/Language/C99/Simple/Util.hs, dist/build/Language/C99/Simple/Util.o, dist/build/Language/C99/Simple/Util.dyn_o ) [4 of 5] Compiling Language.C99.Simple.Translate ( src/Language/C99/Simple/Translate.hs, dist/build/Language/C99/Simple/Translate.o, dist/build/Language/C99/Simple/Translate.dyn_o ) [5 of 5] Compiling Language.C99.Simple ( src/Language/C99/Simple.hs, dist/build/Language/C99/Simple.o, dist/build/Language/C99/Simple.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-1755487/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/language-c99-simple-0.3.0-cff10f4efdb08d0c51bc572722fff6fee7819c29c0325ff2ed8fc415f2f7ad11/lib Configuring copilot-c99-4.5... Preprocessing library for copilot-c99-4.5.. Building library for copilot-c99-4.5.. [ 1 of 10] Compiling Copilot.Compile.C99.Error ( src/Copilot/Compile/C99/Error.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Error.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Error.dyn_o ) [ 2 of 10] Compiling Copilot.Compile.C99.Name ( src/Copilot/Compile/C99/Name.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Name.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Name.dyn_o ) [ 3 of 10] Compiling Copilot.Compile.C99.External ( src/Copilot/Compile/C99/External.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/External.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/External.dyn_o ) [ 4 of 10] Compiling Copilot.Compile.C99.Representation ( src/Copilot/Compile/C99/Representation.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Representation.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Representation.dyn_o ) src/Copilot/Compile/C99/Representation.hs:19:31: warning: [GHC-18042] [-Wtype-defaults] " Defaulting the type variable b0 to type Integer in the following constraints (Show b0) arising from a use of mkUnique at src/Copilot/Compile/C99/Representation.hs:19:31-38 (Num b0) arising from the literal 0 at src/Copilot/Compile/C99/Representation.hs:19:44 (Enum b0) arising from the arithmetic sequence 0 ..  at src/Copilot/Compile/C99/Representation.hs:19:43-47 " In the first argument of zipWith, namely mkUnique In the expression: zipWith mkUnique ts [0 .. ] In an equation for mkUniqueTriggers: mkUniqueTriggers ts = zipWith mkUnique ts [0 .. ] where mkUnique t@(Trigger name _ _) n = UniqueTrigger (name ++ "_" ++ show n) t | 19 | mkUniqueTriggers ts = zipWith mkUnique ts [0..] | ^^^^^^^^ [ 5 of 10] Compiling Copilot.Compile.C99.Settings ( src/Copilot/Compile/C99/Settings.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Settings.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Settings.dyn_o ) [ 6 of 10] Compiling Copilot.Compile.C99.Type ( src/Copilot/Compile/C99/Type.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Type.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Type.dyn_o ) [ 7 of 10] Compiling Copilot.Compile.C99.Expr ( src/Copilot/Compile/C99/Expr.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Expr.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Expr.dyn_o ) src/Copilot/Compile/C99/Expr.hs:66:13: warning: [GHC-63397] [-Wname-shadowing] This binding for i shadows the existing binding bound at src/Copilot/Compile/C99/Expr.hs:64:4 | 66 | modify (\(i, x, y) -> (i + 1, x, y)) | ^ src/Copilot/Compile/C99/Expr.hs:71:13: warning: [GHC-63397] [-Wname-shadowing] This binding for i shadows the existing binding bound at src/Copilot/Compile/C99/Expr.hs:64:4 | 71 | modify (\(i, x, y) -> (i, x ++ [initDecl], y)) | ^ src/Copilot/Compile/C99/Expr.hs:95:13: warning: [GHC-63397] [-Wname-shadowing] This binding for i shadows the existing binding bound at src/Copilot/Compile/C99/Expr.hs:64:4 | 95 | modify (\(i, x, y) -> (i, x, y ++ [ initStmt, updateStmt ])) | ^ src/Copilot/Compile/C99/Expr.hs:104:11: warning: [GHC-40910] [-Wunused-matches] Defined but not used: e | 104 | transExpr e@(Op3 (UpdateArray arrTy@(Array ty2)) e1 e2 e3) = do | ^ src/Copilot/Compile/C99/Expr.hs:112:13: warning: [GHC-63397] [-Wname-shadowing] This binding for i shadows the existing binding bound at src/Copilot/Compile/C99/Expr.hs:110:4 | 112 | modify (\(i, x, y) -> (i + 1, x, y)) | ^ src/Copilot/Compile/C99/Expr.hs:117:13: warning: [GHC-63397] [-Wname-shadowing] This binding for i shadows the existing binding bound at src/Copilot/Compile/C99/Expr.hs:110:4 | 117 | modify (\(i, x, y) -> (i, x ++ [initDecl], y)) | ^ src/Copilot/Compile/C99/Expr.hs:120:7: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for size: Patterns of type Type (Array n t) not matched: Struct _ | 120 | size arrTy@(Array ty) = C.LitInt (fromIntegral $ typeLength arrTy) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... src/Copilot/Compile/C99/Expr.hs:120:12: warning: [GHC-63397] [-Wname-shadowing] This binding for arrTy shadows the existing binding bound at src/Copilot/Compile/C99/Expr.hs:104:31 | 120 | size arrTy@(Array ty) = C.LitInt (fromIntegral $ typeLength arrTy) | ^^^^^ src/Copilot/Compile/C99/Expr.hs:131:13: warning: [GHC-63397] [-Wname-shadowing] This binding for size shadows the existing binding bound at src/Copilot/Compile/C99/Expr.hs:120:7 | 131 | size = C.LitInt | ^^^^ src/Copilot/Compile/C99/Expr.hs:141:13: warning: [GHC-63397] [-Wname-shadowing] This binding for i shadows the existing binding bound at src/Copilot/Compile/C99/Expr.hs:110:4 | 141 | modify (\(i, x, y) -> (i, x, y ++ [ initStmt, updateStmt ])) | ^ src/Copilot/Compile/C99/Expr.hs:161:3: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns of type Op1 a b not matched: GetField Bool _ _ GetField Int8 _ _ GetField Int16 _ _ GetField Int32 _ _ ... | 161 | case op of | ^^^^^^^^^^... [ 8 of 10] Compiling Copilot.Compile.C99.CodeGen ( src/Copilot/Compile/C99/CodeGen.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/CodeGen.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/CodeGen.dyn_o ) src/Copilot/Compile/C99/CodeGen.hs:71:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for mkStructDecln: Patterns of type Type a not matched: Bool Int8 Int16 Int32 ... | 71 | mkStructDecln (Struct x) = C.TypeDecln struct | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... src/Copilot/Compile/C99/CodeGen.hs:81:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for mkStructForwDecln: Patterns of type Type a not matched: Bool Int8 Int16 Int32 ... | 81 | mkStructForwDecln (Struct x) = C.TypeDecln struct | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [ 9 of 10] Compiling Copilot.Compile.C99.Compile ( src/Copilot/Compile/C99/Compile.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Compile.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99/Compile.dyn_o ) [10 of 10] Compiling Copilot.Compile.C99 ( src/Copilot/Compile/C99.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/Copilot/Compile/C99.dyn_o ) Preprocessing test suite 'unit-tests' for copilot-c99-4.5.. Building test suite 'unit-tests' for copilot-c99-4.5.. [1 of 2] Compiling Test.Copilot.Compile.C99 ( tests/Test/Copilot/Compile/C99.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/unit-tests/unit-tests-tmp/Test/Copilot/Compile/C99.o ) tests/Test/Copilot/Compile/C99.hs:37:1: warning: [GHC-66111] [-Wunused-imports] The import of Copilot.Core.Type.Array is redundant except perhaps to import instances from Copilot.Core.Type.Array To import instances alone, use: import Copilot.Core.Type.Array() | 37 | import Copilot.Core.Type.Array (array) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:437:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase1 wrapTC1Expr | 437 | { wrapTC1Expr :: Spec | ^^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:441:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase1 wrapTC1Fun | 441 | , wrapTC1Fun :: [a] -> [b] | ^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:445:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase1 wrapTC1CopInp | 445 | , wrapTC1CopInp :: (String -> String, String, String, Gen a) | ^^^^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:459:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase1 wrapTC1CopOut | 459 | , wrapTC1CopOut :: (String, String) | ^^^^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:470:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase2 wrapTC2Expr | 470 | { wrapTC2Expr :: Spec | ^^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:474:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase2 wrapTC2Fun | 474 | , wrapTC2Fun :: [a] -> [b] -> [c] | ^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:478:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase2 wrapTC2CopInp1 | 478 | , wrapTC2CopInp1 :: (String -> String, String, String, Gen a) | ^^^^^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:492:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase2 wrapTC2CopInp2 | 492 | , wrapTC2CopInp2 :: (String -> String, String, String, Gen b) | ^^^^^^^^^^^^^^ tests/Test/Copilot/Compile/C99.hs:506:5: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of TestCase2 wrapTC2CopOut | 506 | , wrapTC2CopOut :: (String, String) | ^^^^^^^^^^^^^ [2 of 2] Compiling Main ( tests/Main.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/unit-tests/unit-tests-tmp/Main.o ) [3 of 3] Linking /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/build/unit-tests/unit-tests Running 1 test suites... Test suite unit-tests: RUNNING... Test suite unit-tests: FAIL Test suite logged to: /var/lib/hackage-doc-builder/build-cache/tmp-install/reports/copilot-c99-4.5.test Writing: hpc_index.html Writing: hpc_index_fun.html Writing: hpc_index_alt.html Writing: hpc_index_exp.html Test coverage report written to /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/hpc/vanilla/html/unit-tests/hpc_index.html 0 of 1 test suites (0 of 1 test cases) passed. Writing: hpc_index.html Writing: hpc_index_fun.html Writing: hpc_index_alt.html Writing: hpc_index_exp.html Package coverage report written to /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/copilot-c99-4.5/noopt/hpc/vanilla/html/copilot-c99-4.5/hpc_index.html Error: cabal: Tests failed for copilot-c99-4.5.