[Haskell-cafe] haddock build failure

David Waern david.waern at gmail.com
Wed Jul 30 04:37:49 EDT 2008


This is a bug in the haddock.cabal file. Haddock 2.1 doesn't support
GHC 6.8.3. The next release will, and it will come out soon.

David

2008/7/30 Jason Dusek <jason.dusek at gmail.com>:
>  I am unable to build Haddock 2.1, with the odd error:
>
>    src/Haddock/GHC/Typecheck.hs:82:4:
>        Constructor `HsModule' should have 7 arguments, but has been given 8
>
>  What is the root of it, you think?
>
> --
> _jsn
>
>
>
>
> Configuring haddock-2.1.0...
> Dependency base-any: using base-3.0.2.0
> Dependency haskell98-any: using haskell98-1.0.1.0
> Dependency ghc>=6.8.2&&<6.9: using ghc-6.8.3
> Dependency filepath-any: using filepath-1.1.0.0
> Dependency directory-any: using directory-1.0.0.1
> Dependency pretty-any: using pretty-1.0.0.0
> Dependency containers-any: using containers-0.1.0.2
> Dependency array-any: using array-0.1.0.0
> Using compiler: ghc-6.8.3
> Using install prefix: /usr/local
> Binaries installed in: /usr/local/bin
> Libraries installed in: /usr/local/lib/haddock-2.1.0/ghc-6.8.3
> Private binaries installed in: /usr/local/libexec
> Data files installed in: /usr/local/share/haddock-2.1.0
> Documentation installed in: /usr/local/share/doc/haddock-2.1.0
> No alex found
> Using ar found on system at: /usr/bin/ar
> No c2hs found
> No cpphs found
> No ffihugs found
> Using ghc version 6.8.3 found on system at: /usr/bin/ghc
> Using ghc-pkg version 6.8.3 found on system at: /usr/bin/ghc-pkg
> No greencard found
> No haddock found
> No happy found
> No hmake found
> Using hsc2hs version 0.66-ghc found on system at: /usr/bin/hsc2hs
> No hscolour found
> No hugs found
> No jhc found
> Using ld found on system at: /usr/bin/ld
> No nhc98 found
> No pfesetup found
> Using pkg-config version 0.23 found on system at: /opt/local/bin/pkg-config
> Using ranlib found on system at: /usr/bin/ranlib
> Using tar found on system at: /usr/bin/tar
> Creating dist/build (and its parents)
> Creating dist/build/autogen (and its parents)
> Preprocessing library haddock-2.1.0...
> Preprocessing executables for haddock-2.1.0...
> Building haddock-2.1.0...
> Building library...
> Creating dist/build (and its parents)
> Creating dist/build (and its parents)
> /usr/bin/ghc -package-name haddock-2.1.0 --make -hide-all-packages -i
> -idist/build/autogen -idist/build -isrc -Idist/build -odir dist/build
> -hidir dist/build -stubdir dist/build -package base-3.0.2.0 -package
> haskell98-1.0.1.0 -package ghc-6.8.3 -package filepath-1.1.0.0
> -package directory-1.0.0.1 -package pretty-1.0.0.0 -package
> containers-0.1.0.2 -package array-0.1.0.0 -O -XCPP -XPatternGuards
> -XDeriveDataTypeable -XPatternSignatures -XMagicHash
> Distribution.Haddock Haddock.Types Haddock.InterfaceFile
> Haddock.Exception
> Linking...
> /usr/bin/ar q dist/build/libHShaddock-2.1.0.a
> dist/build/Distribution/Haddock.o dist/build/Haddock/Types.o
> dist/build/Haddock/InterfaceFile.o dist/build/Haddock/Exception.o
> ar: creating archive dist/build/libHShaddock-2.1.0.a
> /usr/bin/ld -x -r -o dist/build/HShaddock-2.1.0.o.tmp
> dist/build/Distribution/Haddock.o dist/build/Haddock/Types.o
> dist/build/Haddock/InterfaceFile.o dist/build/Haddock/Exception.o
> Building executable: haddock...
> Creating dist/build/haddock (and its parents)
> Creating dist/build/haddock/haddock-tmp (and its parents)
> Creating dist/build/haddock/haddock-tmp (and its parents)
> /usr/bin/ghc -o dist/build/haddock/haddock --make -hide-all-packages
> -i -idist/build/autogen -idist/build/haddock/haddock-tmp -isrc
> -Idist/build/haddock/haddock-tmp -odir dist/build/haddock/haddock-tmp
> -hidir dist/build/haddock/haddock-tmp -stubdir
> dist/build/haddock/haddock-tmp -package base-3.0.2.0 -package
> haskell98-1.0.1.0 -package ghc-6.8.3 -package filepath-1.1.0.0
> -package directory-1.0.0.1 -package pretty-1.0.0.0 -package
> containers-0.1.0.2 -package array-0.1.0.0 -O -funbox-strict-fields -O2
> -XCPP -XPatternGuards -XDeriveDataTypeable -XPatternSignatures
> -XMagicHash src/Main.hs
> [ 8 of 24] Compiling Paths_haddock    (
> dist/build/autogen/Paths_haddock.hs,
> dist/build/haddock/haddock-tmp/Paths_haddock.o )
> [15 of 24] Compiling Haddock.GHC.Typecheck (
> src/Haddock/GHC/Typecheck.hs,
> dist/build/haddock/haddock-tmp/Haddock/GHC/Typecheck.o )
>
> src/Haddock/GHC/Typecheck.hs:82:4:
>    Constructor `HsModule' should have 7 arguments, but has been given 8
>    In the pattern: HsModule _ _ _ _ _ mbOpts _ _
>    In a pattern binding: HsModule _ _ _ _ _ mbOpts _ _ = unLoc parsed
>    In the definition of `mkGhcModule':
>        mkGhcModule (mod, file, checkedMod) dynflags
>                      = GhcModule
>                          {ghcModule = mod, ghcFilename = file,
> ghcMbDocOpts = mbOpts,
>                           ghcHaddockModInfo = info, ghcMbDoc = mbDoc,
> ghcGroup = group,
>                           ghcMbExports = mbExports,
>                           ghcExportedNames = modInfoExports modInfo,
>                           ghcNamesInScope = fromJust $
> modInfoTopLevelScope modInfo,
>                           ghcInstances = modInfoInstances modInfo}
>                      where
>                          HsModule _ _ _ _ _ mbOpts _ _ = unLoc parsed
>                          (group, _, mbExports, mbDoc, info) = renamed
>                          (parsed, renamed, _, modInfo) = checkedMod
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list