How to install haddock with ghc-7.2.1?

Hi list. Installing haddock fails with ghc-7.2.1. How do I get to install it along with all dependencies? C:\>cabal install haddock Resolving dependencies... Downloading ghc-paths-0.1.0.8... [1 of 1] Compiling Main ( C:\Users\user\AppData\Local\Temp\ghc-paths-0.1.0.86336\ghc-pths-0.1.0.8\Setup.hs, C:\Users\user\AppData\Local\Temp\ghc-paths-0.1.0.86336\ghc-paths-0.1.0.8\dis \setup\Main.o ) Linking C:\Users\user\AppData\Local\Temp\ghc-paths-0.1.0.86336\ghc-paths-0.1.0.8\dist\setup\setup.exe ... Configuring ghc-paths-0.1.0.8... Building ghc-paths-0.1.0.8... Preprocessing library ghc-paths-0.1.0.8... [1 of 1] Compiling GHC.Paths ( GHC\Paths.hs, dist\build\GHC\Paths.o ) Registering ghc-paths-0.1.0.8... Installing library in C:\Users\user\AppData\Roaming\cabal\ghc-paths-0.1.0.8\ghc-7.2.1 Registering ghc-paths-0.1.0.8... Downloading xhtml-3000.2.0.4... Configuring xhtml-3000.2.0.4... Preprocessing library xhtml-3000.2.0.4... Building xhtml-3000.2.0.4... [ 1 of 15] Compiling Text.XHtml.BlockTable ( Text\XHtml\BlockTable.hs, dist\build\Text\XHtml\BlockTable.o ) Implicit import declaration: base:Prelude can't be safely imported! The package (base) the module resides in isn't trusted. cabal: Error: some packages failed to install: haddock-2.9.4 depends on xhtml-3000.2.0.4 which failed to install. xhtml-3000.2.0.4 failed during the building phase. The exception was: ExitFailure 1

On Thursday 06 October 2011, 15:20:44, Paulo Pocinho wrote:
Implicit import declaration: base:Prelude can't be safely imported! The package (base) the module resides in isn't trusted.
Due to an oversight, the base package isn't trusted by default in ghc-7.2.1, run C:\> ghc-pkg trust base to trust it.
participants (2)
-
Daniel Fischer
-
Paulo Pocinho