Resolving dependencies... Configuring cereal-0.5.4.0... Configuring ghc-paths-0.1.0.9... Building cereal-0.5.4.0... Building ghc-paths-0.1.0.9... Installed ghc-paths-0.1.0.9 Configuring haddock-library-1.4.2... Building haddock-library-1.4.2... Configuring mtl-2.2.1... Installed cereal-0.5.4.0 Building mtl-2.2.1... Configuring old-locale-1.0.0.7... Installed mtl-2.2.1 Building old-locale-1.0.0.7... Configuring random-1.1... Installed haddock-library-1.4.2 Configuring primitive-0.6.2.0... Installed old-locale-1.0.0.7 Building random-1.1... Building primitive-0.6.2.0... Configuring syb-0.6... Installed random-1.1 Building syb-0.6... Configuring text-1.2.2.1... Installed primitive-0.6.2.0 Building text-1.2.2.1... Installed syb-0.6 Configuring haddock-api-2.17.3... Building haddock-api-2.17.3... Configuring old-time-1.1.0.3... Failed to install haddock-api-2.17.3 Build log ( /home/builder/.cabal/logs/haddock-api-2.17.3.log ): cabal: Entering directory '/tmp/cabal-tmp-16510/haddock-api-2.17.3' Configuring haddock-api-2.17.3... Building haddock-api-2.17.3... Preprocessing library haddock-api-2.17.3... [ 1 of 38] Compiling Paths_haddock_api ( dist/build/autogen/Paths_haddock_api.hs, dist/build/Paths_haddock_api.o ) [ 2 of 38] Compiling Haddock.Version ( src/Haddock/Version.hs, dist/build/Haddock/Version.o ) [ 3 of 38] Compiling Haddock.Syb ( src/Haddock/Syb.hs, dist/build/Haddock/Syb.o ) [ 4 of 38] Compiling Haddock.Parser ( src/Haddock/Parser.hs, dist/build/Haddock/Parser.o ) [ 5 of 38] Compiling Haddock.GhcUtils ( src/Haddock/GhcUtils.hs, dist/build/Haddock/GhcUtils.o ) src/Haddock/GhcUtils.hs:20:1: warning: [-Wunused-imports] The import of ‘Data.Function’ is redundant except perhaps to import instances from ‘Data.Function’ To import instances alone, use: import Data.Function() src/Haddock/GhcUtils.hs:27:1: warning: [-Wunused-imports] The import of ‘RdrName’ is redundant except perhaps to import instances from ‘RdrName’ To import instances alone, use: import RdrName() src/Haddock/GhcUtils.hs:28:1: warning: [-Wunused-imports] The import of ‘GhcMonad’ is redundant except perhaps to import instances from ‘GhcMonad’ To import instances alone, use: import GhcMonad() src/Haddock/GhcUtils.hs:30:1: warning: [-Wunused-imports] The import of ‘UniqFM’ is redundant except perhaps to import instances from ‘UniqFM’ To import instances alone, use: import UniqFM() [ 6 of 38] Compiling Haddock.Backends.Xhtml.Types ( src/Haddock/Backends/Xhtml/Types.hs, dist/build/Haddock/Backends/Xhtml/Types.o ) [ 7 of 38] Compiling Haddock.Backends.Hyperlinker.Types ( src/Haddock/Backends/Hyperlinker/Types.hs, dist/build/Haddock/Backends/Hyperlinker/Types.o ) [ 8 of 38] Compiling Haddock.Types ( src/Haddock/Types.hs, dist/build/Haddock/Types.o ) src/Haddock/Types.hs:451:10: error: Duplicate instance declarations: instance NFData Name -- Defined at src/Haddock/Types.hs:451:10 instance NFData Name -- Defined in ‘Name’ src/Haddock/Types.hs:452:10: error: Duplicate instance declarations: instance NFData OccName -- Defined at src/Haddock/Types.hs:452:10 instance NFData OccName -- Defined in ‘OccName’ src/Haddock/Types.hs:453:10: error: Duplicate instance declarations: instance NFData ModuleName -- Defined at src/Haddock/Types.hs:453:10 instance NFData ModuleName -- Defined in ‘Module’ cabal: Leaving directory '/tmp/cabal-tmp-16510/haddock-api-2.17.3' Building old-time-1.1.0.3... Configuring tf-random-0.5... Installed old-time-1.1.0.3 Building tf-random-0.5... Installed tf-random-0.5 Configuring QuickCheck-2.9.2... Building QuickCheck-2.9.2... Installed text-1.2.2.1 Configuring polyparse-1.12... Building polyparse-1.12... Installed polyparse-1.12 Configuring cpphs-1.20.2... Building cpphs-1.20.2... Installed QuickCheck-2.9.2 Installed cpphs-1.20.2 Configuring haskell-src-exts-1.19.1... Building haskell-src-exts-1.19.1... Installed haskell-src-exts-1.19.1 cabal: Error: some packages failed to install: Hs2lib-0.5.8 depends on haddock-api-2.17.3 which failed to install. haddock-2.17.2 depends on haddock-api-2.17.3 which failed to install. haddock-api-2.17.3 failed during the building phase. The exception was: ExitFailure 1