[Hackage] #250: 'haddock --executables" should dump the haddock interface too

#250: 'haddock --executables" should dump the haddock interface too ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: Linux | ----------------------------+----------------------------------------------- otherwise 'install' or 'copy --destdir=destdir' will fail with: Setup.lhs: dist/doc/html/pkgid/pkgid.haddock: copyFile: does not exist (No such file or directory) I tried to send a patch to the cabal-devel ML, but I'm not a subscriber, so I'm attaching the patch here. Cheers -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/250 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#250: 'haddock --executables" should dump the haddock interface too ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ----------------------------+----------------------------------------------- Comment (by duncan): Is it really useful to have the haddock interface for executables? Perhaps we should just not try to copy it when installing? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/250#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#250: 'haddock --executables" should dump the haddock interface too ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ----------------------------+----------------------------------------------- Comment (by guest): No it is not. You are right, but I saw a simple solution in front of me and I adopted it...;) I'm reading Simple.Install right now and, if I understand it correctly, I think we should change something here to check if the '-executables' flag is used: copyFileVerbose verbosity (haddockPref pkg_descr > haddockName pkg_descr) (interfacePref > haddockName pkg_descr) if you want I can send an amended patch when I find a second to study a bit the code. But maybe you already have the fix in mind. Let me know. Andrea Rossato -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/250#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#250: 'haddock --executables" should dump the haddock interface too ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ----------------------------+----------------------------------------------- Comment (by guest): this could probably be the cleanest solution: when an interface file exists it will get installed in the correct place. Hope this helps. ar -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/250#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#250: 'haddock --executables" should dump the haddock interface too ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: fixed Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed Comment: Applied. Well, actually I had to change it a bit because of more recent changes. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/250#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage