Ticket #18 (closed defect: fixed)

Opened 6 years ago

Last modified 22 months ago

Haddock build failure under GHC-6.8.3

Reported by: oddron@… Owned by:
Priority: major Milestone:
Version: 2.1.0 Keywords:
Cc:

Description

Haddock 2.1.0 fails to build under ghc-6.8.3. Here is the error I'm getting:

[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

Change History

Changed 6 years ago by anonymous

  • milestone set to 2.2.0

Changed 6 years ago by ak47

following worked for me :

1) add "import FastString?" to the top of the file 2) remove one of the _'s before mbOpts on that line that gives the error 3) on line 72 of the original file (probably 73 after step 1), insert 'fmap unpackFS' before 'mbOpts'.

(fix by Matti Niemenmaa, http://www.nabble.com/Haddock-compilationproblem-td18022005.html , no linking problems on my install)

Changed 6 years ago by EricKow

Another simple workaround is just to delete the line with mbOpts in it, and set ghcMbDocOpts to Nothing

Not sure what I lose in the process, though.

Changed 6 years ago by waern

  • status changed from new to closed
  • resolution set to fixed

Changed 22 months ago by anonymous

  • milestone 2.2.0 deleted

Milestone 2.2.0 deleted

Note: See TracTickets for help on using tickets.