Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Building cabal-install-1.16.0.2
- "/usr/local/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.16.0"
- [1 of 1] Compiling Main ( Setup.hs, Setup.o )
- Linking Setup ...
- "./Setup" "configure" "--package-db=../../packages/package.conf.inplace" "--prefix=/usr/local" "--with-compiler=/usr/local/bin/ghc" "--with-hc-pkg=/usr/local/bin/ghc-pkg" "--with-hsc2hs=/usr/local/bin/hsc2hs" "--with-happy=../happy-1.18.10/dist/build/happy/happy" "--happy-options=--template=../happy-1.18.10" "--with-alex=../alex-3.0.5/dist/build/alex/alex" "--enable-library-profiling" "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace"
- Configuring cabal-install-1.16.0.2...
- "./Setup" "build"
- Building cabal-install-1.16.0.2...
- Preprocessing executable 'cabal' for cabal-install-1.16.0.2...
- [ 1 of 65] Compiling Distribution.Client.Haddock ( Distribution/Client/Haddock.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Haddock.o )
- Distribution/Client/Haddock.hs:54:7:
- Couldn't match expected type `IO ()'
- with actual type `(FilePath -> IO a0) -> IO a0'
- In a stmt of a 'do' block:
- withTempDirectory verbosity destDir "tmphaddock"
- $ \ tempDir
- -> do { let ...;
- rawSystemProgram verbosity confHaddock flags;
- .... }
- In the expression:
- do { (paths, warns) <- haddockPackagePaths pkgs';
- case warns of {
- Nothing -> return ()
- Just m -> debug verbosity m };
- (confHaddock, _, _) <- requireProgramVersion
- verbosity
- haddockProgram
- (orLaterVersion (Version [0, 6] []))
- conf;
- createDirectoryIfMissing True destDir;
- .... }
- In an equation for `regenerateHaddockIndex':
- regenerateHaddockIndex verbosity pkgs conf index
- = do { (paths, warns) <- haddockPackagePaths pkgs';
- case warns of {
- Nothing -> return ()
- Just m -> debug verbosity m };
- (confHaddock, _, _) <- requireProgramVersion
- verbosity
- haddockProgram
- (orLaterVersion (Version [0, ....] []))
- conf;
- .... }
- where
- (destDir, destFile) = splitFileName index
- pkgs'
- = [maximumBy (comparing packageVersion) pkgvers' |
- (_pname, pkgvers) <- allPackagesByName pkgs,
- let ...,
- not (null pkgvers')]
- Distribution/Client/Haddock.hs:54:35:
- Couldn't match type `[Char]' with `Bool'
- Expected type: Bool
- Actual type: String
- In the second argument of `withTempDirectory', namely `destDir'
- In the expression: withTempDirectory verbosity destDir "tmphaddock"
- In a stmt of a 'do' block:
- withTempDirectory verbosity destDir "tmphaddock"
- $ \ tempDir
- -> do { let ...;
- rawSystemProgram verbosity confHaddock flags;
- .... }
- Distribution/Client/Haddock.hs:54:58:
- Couldn't match expected type `[Char] -> IO ()'
- with actual type `[Char]'
- The lambda expression `\ tempDir -> ...' has one argument,
- but its type `String' has none
- In the second argument of `($)', namely
- `\ tempDir
- -> do { let ...;
- rawSystemProgram verbosity confHaddock flags;
- .... }'
- In a stmt of a 'do' block:
- withTempDirectory verbosity destDir "tmphaddock"
- $ \ tempDir
- -> do { let ...;
- rawSystemProgram verbosity confHaddock flags;
- .... }
- Error:
- Building the cabal-install-1.16.0.2 package failed
- make: *** [build.stamp] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement