Advertisement
xathrya

Untitled

Jul 6th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.93 KB | None | 0 0
  1. Building cabal-install-1.16.0.2
  2. "/usr/local/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.16.0"
  3. [1 of 1] Compiling Main             ( Setup.hs, Setup.o )
  4. Linking Setup ...
  5. "./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"
  6. Configuring cabal-install-1.16.0.2...
  7. "./Setup" "build"
  8. Building cabal-install-1.16.0.2...
  9. Preprocessing executable 'cabal' for cabal-install-1.16.0.2...
  10. [ 1 of 65] Compiling Distribution.Client.Haddock ( Distribution/Client/Haddock.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Haddock.o )
  11.  
  12. Distribution/Client/Haddock.hs:54:7:
  13.     Couldn't match expected type `IO ()'
  14.                 with actual type `(FilePath -> IO a0) -> IO a0'
  15.    In a stmt of a 'do' block:
  16.      withTempDirectory verbosity destDir "tmphaddock"
  17.      $ \ tempDir
  18.          -> do { let ...;
  19.                  rawSystemProgram verbosity confHaddock flags;
  20.                  .... }
  21.    In the expression:
  22.      do { (paths, warns) <- haddockPackagePaths pkgs';
  23.            case warns of {
  24.              Nothing -> return ()
  25.              Just m -> debug verbosity m };
  26.            (confHaddock, _, _) <- requireProgramVersion
  27.                                     verbosity
  28.                                     haddockProgram
  29.                                     (orLaterVersion (Version [0, 6] []))
  30.                                     conf;
  31.            createDirectoryIfMissing True destDir;
  32.            .... }
  33.     In an equation for `regenerateHaddockIndex':
  34.        regenerateHaddockIndex verbosity pkgs conf index
  35.          = do { (paths, warns) <- haddockPackagePaths pkgs';
  36.                  case warns of {
  37.                    Nothing -> return ()
  38.                    Just m -> debug verbosity m };
  39.                  (confHaddock, _, _) <- requireProgramVersion
  40.                                           verbosity
  41.                                           haddockProgram
  42.                                           (orLaterVersion (Version [0, ....] []))
  43.                                           conf;
  44.                  .... }
  45.           where
  46.               (destDir, destFile) = splitFileName index
  47.               pkgs'
  48.                = [maximumBy (comparing packageVersion) pkgvers' |
  49.                      (_pname, pkgvers) <- allPackagesByName pkgs,
  50.                      let ...,
  51.                      not (null pkgvers')]
  52.  
  53. Distribution/Client/Haddock.hs:54:35:
  54.    Couldn't match type `[Char]' with `Bool'
  55.     Expected type: Bool
  56.       Actual type: String
  57.     In the second argument of `withTempDirectory', namely `destDir'
  58.     In the expression: withTempDirectory verbosity destDir "tmphaddock"
  59.     In a stmt of a 'do' block:
  60.       withTempDirectory verbosity destDir "tmphaddock"
  61.       $ \ tempDir
  62.           -> do { let ...;
  63.                   rawSystemProgram verbosity confHaddock flags;
  64.                   .... }
  65.  
  66. Distribution/Client/Haddock.hs:54:58:
  67.     Couldn't match expected type `[Char] -> IO ()'
  68.                 with actual type `[Char]'
  69.    The lambda expression `\ tempDir -> ...' has one argument,
  70.     but its type `String' has none
  71.    In the second argument of `($)', namely
  72.       `\ tempDir
  73.          -> do { let ...;
  74.                  rawSystemProgram verbosity confHaddock flags;
  75.                  .... }'
  76.    In a stmt of a 'do' block:
  77.      withTempDirectory verbosity destDir "tmphaddock"
  78.      $ \ tempDir
  79.          -> do { let ...;
  80.                  rawSystemProgram verbosity confHaddock flags;
  81.                  .... }
  82.  
  83. Error:
  84. Building the cabal-install-1.16.0.2 package failed
  85. make: *** [build.stamp] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement