Resolving dependencies... [1 of 1] Compiling Main ( /tmp/ghc-paths-0.1.0.9-12886/ghc-paths-0.1.0.9/Setup.hs, /tmp/ghc-paths-0.1.0.9-12886/ghc-paths-0.1.0.9/dist/setup/Main.o ) Linking /tmp/ghc-paths-0.1.0.9-12886/ghc-paths-0.1.0.9/dist/setup/setup ... Configuring ghc-paths-0.1.0.9... Building ghc-paths-0.1.0.9... Preprocessing library ghc-paths-0.1.0.9... [1 of 1] Compiling GHC.Paths ( GHC/Paths.hs, dist/build/GHC/Paths.o ) In-place registering ghc-paths-0.1.0.9... Running Haddock for ghc-paths-0.1.0.9... Running hscolour for ghc-paths-0.1.0.9... Preprocessing library ghc-paths-0.1.0.9... Preprocessing library ghc-paths-0.1.0.9... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0 Haddock coverage: 0% ( 0 / 5) in 'GHC.Paths' Documentation created: dist/doc/html/ghc-paths/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/ghc-paths-0.1.0.9 Registering ghc-paths-0.1.0.9... Installed ghc-paths-0.1.0.9 Configuring xhtml-3000.2.1... Building xhtml-3000.2.1... Preprocessing library xhtml-3000.2.1... [ 1 of 15] Compiling Text.XHtml.BlockTable ( Text/XHtml/BlockTable.hs, dist/build/Text/XHtml/BlockTable.o ) [ 2 of 15] Compiling Text.XHtml.Internals ( Text/XHtml/Internals.hs, dist/build/Text/XHtml/Internals.o ) [ 3 of 15] Compiling Text.XHtml.Transitional.Elements ( Text/XHtml/Transitional/Elements.hs, dist/build/Text/XHtml/Transitional/Elements.o ) [ 4 of 15] Compiling Text.XHtml.Transitional.Attributes ( Text/XHtml/Transitional/Attributes.hs, dist/build/Text/XHtml/Transitional/Attributes.o ) [ 5 of 15] Compiling Text.XHtml.Frameset.Attributes ( Text/XHtml/Frameset/Attributes.hs, dist/build/Text/XHtml/Frameset/Attributes.o ) [ 6 of 15] Compiling Text.XHtml.Strict.Attributes ( Text/XHtml/Strict/Attributes.hs, dist/build/Text/XHtml/Strict/Attributes.o ) [ 7 of 15] Compiling Text.XHtml.Frameset.Elements ( Text/XHtml/Frameset/Elements.hs, dist/build/Text/XHtml/Frameset/Elements.o ) [ 8 of 15] Compiling Text.XHtml.Strict.Elements ( Text/XHtml/Strict/Elements.hs, dist/build/Text/XHtml/Strict/Elements.o ) [ 9 of 15] Compiling Text.XHtml.Extras ( Text/XHtml/Extras.hs, dist/build/Text/XHtml/Extras.o ) [10 of 15] Compiling Text.XHtml.Strict ( Text/XHtml/Strict.hs, dist/build/Text/XHtml/Strict.o ) [11 of 15] Compiling Text.XHtml.Frameset ( Text/XHtml/Frameset.hs, dist/build/Text/XHtml/Frameset.o ) [12 of 15] Compiling Text.XHtml.Table ( Text/XHtml/Table.hs, dist/build/Text/XHtml/Table.o ) [13 of 15] Compiling Text.XHtml.Debug ( Text/XHtml/Debug.hs, dist/build/Text/XHtml/Debug.o ) [14 of 15] Compiling Text.XHtml.Transitional ( Text/XHtml/Transitional.hs, dist/build/Text/XHtml/Transitional.o ) [15 of 15] Compiling Text.XHtml ( Text/XHtml.hs, dist/build/Text/XHtml.o ) In-place registering xhtml-3000.2.1... Running Haddock for xhtml-3000.2.1... Running hscolour for xhtml-3000.2.1... Preprocessing library xhtml-3000.2.1... Preprocessing library xhtml-3000.2.1... Haddock coverage: 73% ( 8 / 11) in 'Text.XHtml.BlockTable' 71% ( 27 / 38) in 'Text.XHtml.Internals' 8% ( 1 / 12) in 'Text.XHtml.Transitional.Elements' 5% ( 2 / 37) in 'Text.XHtml.Transitional.Attributes' 14% ( 1 / 7) in 'Text.XHtml.Frameset.Attributes' 2% ( 1 / 50) in 'Text.XHtml.Strict.Attributes' 20% ( 1 / 5) in 'Text.XHtml.Frameset.Elements' 1% ( 1 / 79) in 'Text.XHtml.Strict.Elements' 34% ( 11 / 32) in 'Text.XHtml.Extras' 19% ( 37 /190) in 'Text.XHtml.Strict' 18% ( 36 /197) in 'Text.XHtml.Frameset' 30% ( 3 / 10) in 'Text.XHtml.Table' 60% ( 3 / 5) in 'Text.XHtml.Debug' 16% ( 39 /244) in 'Text.XHtml.Transitional' 71% ( 5 / 7) in 'Text.XHtml' Documentation created: dist/doc/html/xhtml/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/xhtml-3000.2.1 Registering xhtml-3000.2.1... Installed xhtml-3000.2.1 Downloading haddock-2.12.0... Configuring haddock-2.12.0... Building haddock-2.12.0... Preprocessing library haddock-2.12.0... unused terminals: 1 [ 1 of 31] Compiling Haddock.Backends.HaddockDB ( src/Haddock/Backends/HaddockDB.hs, dist/build/Haddock/Backends/HaddockDB.o ) [ 2 of 31] Compiling Haddock.Backends.Xhtml.Types ( src/Haddock/Backends/Xhtml/Types.hs, dist/build/Haddock/Backends/Xhtml/Types.o ) [ 3 of 31] Compiling Haddock.Convert ( src/Haddock/Convert.hs, dist/build/Haddock/Convert.o ) [ 4 of 31] Compiling Paths_haddock ( dist/build/autogen/Paths_haddock.hs, dist/build/Paths_haddock.o ) [ 5 of 31] Compiling Haddock.GhcUtils ( src/Haddock/GhcUtils.hs, dist/build/Haddock/GhcUtils.o ) [ 6 of 31] Compiling Haddock.Version ( src/Haddock/Version.hs, dist/build/Haddock/Version.o ) [ 7 of 31] Compiling Haddock.Lex ( dist/build/Haddock/Lex.hs, dist/build/Haddock/Lex.o ) [ 8 of 31] Compiling Haddock.Types ( src/Haddock/Types.hs, dist/build/Haddock/Types.o ) [ 9 of 31] Compiling Haddock.Utils ( src/Haddock/Utils.hs, dist/build/Haddock/Utils.o ) [10 of 31] Compiling Haddock.Options ( src/Haddock/Options.hs, dist/build/Haddock/Options.o ) [11 of 31] Compiling Haddock.Backends.Xhtml.Themes ( src/Haddock/Backends/Xhtml/Themes.hs, dist/build/Haddock/Backends/Xhtml/Themes.o ) [12 of 31] Compiling Haddock.Backends.Xhtml.Utils ( src/Haddock/Backends/Xhtml/Utils.hs, dist/build/Haddock/Backends/Xhtml/Utils.o ) [13 of 31] Compiling Haddock.Backends.LaTeX ( src/Haddock/Backends/LaTeX.hs, dist/build/Haddock/Backends/LaTeX.o ) [14 of 31] Compiling Haddock.Backends.Hoogle ( src/Haddock/Backends/Hoogle.hs, dist/build/Haddock/Backends/Hoogle.o ) [15 of 31] Compiling Haddock.Interface.AttachInstances ( src/Haddock/Interface/AttachInstances.hs, dist/build/Haddock/Interface/AttachInstances.o ) [16 of 31] Compiling Haddock.Interface.Rename ( src/Haddock/Interface/Rename.hs, dist/build/Haddock/Interface/Rename.o ) [17 of 31] Compiling Haddock.Doc ( src/Haddock/Doc.hs, dist/build/Haddock/Doc.o ) [18 of 31] Compiling Haddock.Parse ( dist/build/Haddock/Parse.hs, dist/build/Haddock/Parse.o ) [19 of 31] Compiling Haddock.Interface.ParseModuleHeader ( src/Haddock/Interface/ParseModuleHeader.hs, dist/build/Haddock/Interface/ParseModuleHeader.o ) [20 of 31] Compiling Haddock.Interface.LexParseRn ( src/Haddock/Interface/LexParseRn.hs, dist/build/Haddock/Interface/LexParseRn.o ) [21 of 31] Compiling Haddock.Interface.Create ( src/Haddock/Interface/Create.hs, dist/build/Haddock/Interface/Create.o ) [22 of 31] Compiling Haddock.Backends.Xhtml.Names ( src/Haddock/Backends/Xhtml/Names.hs, dist/build/Haddock/Backends/Xhtml/Names.o ) [23 of 31] Compiling Haddock.Backends.Xhtml.DocMarkup ( src/Haddock/Backends/Xhtml/DocMarkup.hs, dist/build/Haddock/Backends/Xhtml/DocMarkup.o ) [24 of 31] Compiling Haddock.Backends.Xhtml.Layout ( src/Haddock/Backends/Xhtml/Layout.hs, dist/build/Haddock/Backends/Xhtml/Layout.o ) [25 of 31] Compiling Haddock.Backends.Xhtml.Decl ( src/Haddock/Backends/Xhtml/Decl.hs, dist/build/Haddock/Backends/Xhtml/Decl.o ) [26 of 31] Compiling Haddock.ModuleTree ( src/Haddock/ModuleTree.hs, dist/build/Haddock/ModuleTree.o ) [27 of 31] Compiling Haddock.Backends.Xhtml ( src/Haddock/Backends/Xhtml.hs, dist/build/Haddock/Backends/Xhtml.o ) [28 of 31] Compiling Haddock.InterfaceFile ( src/Haddock/InterfaceFile.hs, dist/build/Haddock/InterfaceFile.o ) [29 of 31] Compiling Haddock.Interface ( src/Haddock/Interface.hs, dist/build/Haddock/Interface.o ) [30 of 31] Compiling Main ( src/Main.hs, dist/build/Main.o ) [31 of 31] Compiling Documentation.Haddock ( src/Documentation/Haddock.hs, dist/build/Documentation/Haddock.o ) src/Documentation/Haddock.hs:73:21: Couldn't match type `GhcMonad.Ghc' with `IO' Expected type: IO ([(DocPaths, InterfaceFile)], [Interface], LinkEnv) Actual type: GhcMonad.Ghc ([(DocPaths, InterfaceFile)], [Interface], LinkEnv) In the return type of a call of `readPackagesAndProcessModules' In a stmt of a 'do' block: (_, ifaces, _) <- readPackagesAndProcessModules flags modules In the expression: do { (_, ifaces, _) <- readPackagesAndProcessModules flags modules; return ifaces } Failed to install haddock-2.12.0 cabal: Error: some packages failed to install: haddock-2.12.0 failed during the building phase. The exception was: ExitFailure 1