Resolving dependencies... Build profile: -w ghc-9.8.4 -O0 In order, the following will be built (use -v for more details): - Diff-1.0.2 (lib:Diff) (requires build) - call-stack-0.4.0 (lib:call-stack) (requires build) - old-locale-1.0.0.7 (lib:old-locale) (requires build) - split-0.2.5 (lib:split) (requires build) - utf8-string-1.0.2 (lib:utf8-string) (requires build) - xml-1.3.14 (lib:xml) (requires build) - HUnit-1.6.2.0 (lib:HUnit) (requires build) - filestore-0.6.5.1 (first run) Configuring Diff-1.0.2... Preprocessing library for Diff-1.0.2.. Building library for Diff-1.0.2.. [1 of 3] Compiling Data.Algorithm.Diff ( src/Data/Algorithm/Diff.hs, dist/build/Data/Algorithm/Diff.o, dist/build/Data/Algorithm/Diff.dyn_o ) src/Data/Algorithm/Diff.hs:69:9: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type [DL] not matched: [] | 69 | where (hd:rst) = nextDLs dls | ^^^^^^^^^^^^^^^^^^^^^^ src/Data/Algorithm/Diff.hs:87:23: 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." | 87 | lcs eq as bs = path . head . dropWhile (\dl -> poi dl /= lena || poj dl /= lenb) . | ^^^^ [2 of 3] Compiling Data.Algorithm.DiffContext ( src/Data/Algorithm/DiffContext.hs, dist/build/Data/Algorithm/DiffContext.o, dist/build/Data/Algorithm/DiffContext.dyn_o ) [3 of 3] Compiling Data.Algorithm.DiffOutput ( src/Data/Algorithm/DiffOutput.hs, dist/build/Data/Algorithm/DiffOutput.o, dist/build/Data/Algorithm/DiffOutput.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-936794/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/Diff-1.0.2-c3d705ae9abb232cb75c1c644a6b21986201a9cffe7a80558cfb7db71c4d8a66/lib 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-936794/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/call-stack-0.4.0-31951dc4e9db177e2ea89098d1122ced7b6da41fd279273945130bdfc91e7098/lib Configuring old-locale-1.0.0.7... Preprocessing library for old-locale-1.0.0.7.. Building library for old-locale-1.0.0.7.. [1 of 1] Compiling System.Locale ( System/Locale.hs, dist/build/System/Locale.o, dist/build/System/Locale.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-936794/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/old-locale-1.0.0.7-2f1658c62d163bf34cd13b22ae5cb7857f7a5a4576e1bf453dc855a3a4c3a877/lib Configuring split-0.2.5... Preprocessing library for split-0.2.5.. Building library for split-0.2.5.. [1 of 2] Compiling Data.List.Split.Internals ( src/Data/List/Split/Internals.hs, dist/build/Data/List/Split/Internals.o, dist/build/Data/List/Split/Internals.dyn_o ) [2 of 2] Compiling Data.List.Split ( src/Data/List/Split.hs, dist/build/Data/List/Split.o, dist/build/Data/List/Split.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-936794/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/split-0.2.5-f33af888e5d7aae30da13f4007499ef6436bee09a1ae76cd1167bd51d6698972/lib Configuring utf8-string-1.0.2... Preprocessing library for utf8-string-1.0.2.. Building library for utf8-string-1.0.2.. [1 of 5] Compiling Codec.Binary.UTF8.String ( Codec/Binary/UTF8/String.hs, dist/build/Codec/Binary/UTF8/String.o, dist/build/Codec/Binary/UTF8/String.dyn_o ) [2 of 5] Compiling Codec.Binary.UTF8.Generic ( Codec/Binary/UTF8/Generic.hs, dist/build/Codec/Binary/UTF8/Generic.o, dist/build/Codec/Binary/UTF8/Generic.dyn_o ) Codec/Binary/UTF8/Generic.hs:87:21: warning: [GHC-63394] [-Wx-partial] In the use of tail (imported from Data.List, 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." | 87 | tail = List.tail | ^^^^^^^^^ [3 of 5] Compiling Data.ByteString.Lazy.UTF8 ( Data/ByteString/Lazy/UTF8.hs, dist/build/Data/ByteString/Lazy/UTF8.o, dist/build/Data/ByteString/Lazy/UTF8.dyn_o ) [4 of 5] Compiling Data.ByteString.UTF8 ( Data/ByteString/UTF8.hs, dist/build/Data/ByteString/UTF8.o, dist/build/Data/ByteString/UTF8.dyn_o ) [5 of 5] Compiling Data.String.UTF8 ( Data/String/UTF8.hs, dist/build/Data/String/UTF8.o, dist/build/Data/String/UTF8.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-936794/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/utf8-string-1.0.2-d290b66489568a7dddb2a70986a20e580e2c0ad40703ee8b17b35c528f41209f/lib Warning: xml.cabal:18:32: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Configuring xml-1.3.14... Preprocessing library for xml-1.3.14.. Building library for xml-1.3.14.. [1 of 7] Compiling Text.XML.Light.Types ( Text/XML/Light/Types.hs, dist/build/Text/XML/Light/Types.o, dist/build/Text/XML/Light/Types.dyn_o ) [2 of 7] Compiling Text.XML.Light.Proc ( Text/XML/Light/Proc.hs, dist/build/Text/XML/Light/Proc.o, dist/build/Text/XML/Light/Proc.dyn_o ) [3 of 7] Compiling Text.XML.Light.Output ( Text/XML/Light/Output.hs, dist/build/Text/XML/Light/Output.o, dist/build/Text/XML/Light/Output.dyn_o ) [4 of 7] Compiling Text.XML.Light.Lexer ( Text/XML/Light/Lexer.hs, dist/build/Text/XML/Light/Lexer.o, dist/build/Text/XML/Light/Lexer.dyn_o ) Text/XML/Light/Lexer.hs:119:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in one further location. Suggested fix: Please use spaces instead. | 119 | | otherwise = munch ('>':acc) (nesting-1) ds | ^^^^^^^^ Text/XML/Light/Lexer.hs:149:39: 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." | 149 | in TokStart (fst (head cs)) n as b : ts | ^^^^ [5 of 7] Compiling Text.XML.Light.Input ( Text/XML/Light/Input.hs, dist/build/Text/XML/Light/Input.o, dist/build/Text/XML/Light/Input.dyn_o ) [6 of 7] Compiling Text.XML.Light.Cursor ( Text/XML/Light/Cursor.hs, dist/build/Text/XML/Light/Cursor.o, dist/build/Text/XML/Light/Cursor.dyn_o ) [7 of 7] Compiling Text.XML.Light ( Text/XML/Light.hs, dist/build/Text/XML/Light.o, dist/build/Text/XML/Light.dyn_o ) Installing library in /tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/incoming/new-936794/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/xml-1.3.14-f7a1cbb4f00db04b00ede643cef3457dc6ab25cb9a4d6350c1ed5f31e3ae28a7/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-936794/tmp/hackage-doc-builder/.local/state/cabal/store/ghc-9.8.4/HUnit-1.6.2.0-aa8518921a665b3ce3b9f7f0c7a8a7fa42d03d10681bd5ecec8be730444183ec/lib Configuring filestore-0.6.5.1... Preprocessing library for filestore-0.6.5.1.. Building library for filestore-0.6.5.1.. [ 1 of 10] Compiling Data.FileStore.Compat.Locale ( Data/FileStore/Compat/Locale.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Compat/Locale.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Compat/Locale.dyn_o ) [ 2 of 10] Compiling Data.FileStore.Types ( Data/FileStore/Types.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Types.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Types.dyn_o ) [ 3 of 10] Compiling Data.FileStore.Utils ( Data/FileStore/Utils.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Utils.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Utils.dyn_o ) Data/FileStore/Utils.hs:30:1: warning: [GHC-66111] [-Wunused-imports] The import of Control.Applicative is redundant except perhaps to import instances from Control.Applicative To import instances alone, use: import Control.Applicative() | 30 | import Control.Applicative ((<$>)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data/FileStore/Utils.hs:158:7: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type [[Char]] not matched: [] [_] [_, _] | 158 | let (fn:n:res:_) = splitWhen (==':') str | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data/FileStore/Utils.hs:243:18: 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." | 243 | E.catch (liftM head (getDirectoryContents $ encodeArg d) >> a) $ \(e :: E.IOException) -> | ^^^^ [ 4 of 10] Compiling Data.FileStore.MercurialCommandServer ( Data/FileStore/MercurialCommandServer.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/MercurialCommandServer.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/MercurialCommandServer.dyn_o ) Data/FileStore/MercurialCommandServer.hs:23:1: warning: [GHC-66111] [-Wunused-imports] The import of Control.Applicative is redundant except perhaps to import instances from Control.Applicative To import instances alone, use: import Control.Applicative() | 23 | import Control.Applicative ((<$>)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 5 of 10] Compiling Data.FileStore.Mercurial ( Data/FileStore/Mercurial.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Mercurial.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Mercurial.dyn_o ) Data/FileStore/Mercurial.hs:136:25: 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." | 136 | else return $ head result | ^^^^ Data/FileStore/Mercurial.hs:170: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." | 170 | then map FSDirectory $ nub $ map (head . splitDirectories . removePrefix dir) $ lines $ toString output2 | ^^^^ [ 6 of 10] Compiling Data.FileStore.Git ( Data/FileStore/Git.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Git.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Git.dyn_o ) Data/FileStore/Git.hs:307:7: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type [B.ByteString] not matched: [] [_] [_, _] [_, _, _] ... | 307 | let (rev : date' : author : email : subject : rest) = B.split '\0' entry | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Data/FileStore/Git.hs:350:22: 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." | 350 | then parseChanges (tail zs) >>= | ^^^^ Data/FileStore/Git.hs:351:57: 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." | 351 | return . (++) (Deleted file' : Added (toString $ head zs) : []) | ^^^^ [ 7 of 10] Compiling Data.FileStore.Generic ( Data/FileStore/Generic.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Generic.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Generic.dyn_o ) Data/FileStore/Generic.hs:140:47: 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." | 140 | else retrieve fs name (Just $ revId $ Prelude.head revs) | ^^^^^^^^^^^^ [ 8 of 10] Compiling Data.FileStore.DarcsXml ( Data/FileStore/DarcsXml.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/DarcsXml.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/DarcsXml.dyn_o ) [ 9 of 10] Compiling Data.FileStore.Darcs ( Data/FileStore/Darcs.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Darcs.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore/Darcs.dyn_o ) Data/FileStore/Darcs.hs:162:57: 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." | 162 | Just a -> return $ head a | ^^^^ [10 of 10] Compiling Data.FileStore ( Data/FileStore.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore.o, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/Data/FileStore.dyn_o ) Preprocessing test suite 'test-filestore' for filestore-0.6.5.1.. Building test suite 'test-filestore' for filestore-0.6.5.1.. [1 of 1] Compiling Main ( tests/Tests.hs, /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/test-filestore/test-filestore-tmp/Main.o ) [2 of 2] Linking /var/lib/hackage-doc-builder/build-cache/tmp-install/dist-newstyle/build/x86_64-linux/ghc-9.8.4/filestore-0.6.5.1/noopt/build/test-filestore/test-filestore Running 1 test suites... Test suite test-filestore: RUNNING... Test suite test-filestore: FAIL Test suite logged to: /var/lib/hackage-doc-builder/build-cache/tmp-install/reports/filestore-0.6.5.1.test Writing: filestore-0.6.5.1-inplace/Data.FileStore.Generic.hs.html Writing: filestore-0.6.5.1-inplace/Data.FileStore.Utils.hs.html Writing: filestore-0.6.5.1-inplace/Data.FileStore.Mercurial.hs.html Writing: filestore-0.6.5.1-inplace/Data.FileStore.Git.hs.html Writing: filestore-0.6.5.1-inplace/Data.FileStore.Types.hs.html 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/filestore-0.6.5.1/noopt/hpc/vanilla/html/test-filestore/hpc_index.html 0 of 1 test suites (0 of 1 test cases) passed. Writing: filestore-0.6.5.1-inplace/Data.FileStore.Generic.hs.html Writing: filestore-0.6.5.1-inplace/Data.FileStore.Utils.hs.html Writing: filestore-0.6.5.1-inplace/Data.FileStore.Mercurial.hs.html Writing: filestore-0.6.5.1-inplace/Data.FileStore.Git.hs.html Writing: filestore-0.6.5.1-inplace/Data.FileStore.Types.hs.html 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/filestore-0.6.5.1/noopt/hpc/vanilla/html/filestore-0.6.5.1/hpc_index.html Error: cabal: Tests failed for filestore-0.6.5.1.