[haddock] #135: haddock stomps on existing .o and .hi files, breaking package builds

haddock haddock at projects.haskell.org
Thu Apr 8 15:02:52 EDT 2010


#135: haddock stomps on existing .o and .hi files, breaking package builds
-------------------+--------------------------------------------------------
Reporter:  duncan  |       Owner:       
    Type:  defect  |      Status:  new  
Priority:  major   |   Milestone:  2.7.0
 Version:  2.6.0   |    Keywords:       
-------------------+--------------------------------------------------------
 For packages using TemplateHaskell haddock generates .o and .hi files.
 Unfortunately this overwrites existing files produced by the build system
 and breaks packages. This currently affects several packages that use
 TemplateHaskell and Cabal.

 Cabal can be modified to workaround this problem by telling haddock to use
 a separate directory for its temp files. A better solution would be for
 haddock to do this always and automatically. It should never overwrite the
 user's existing .o and .hi files. It is very surprising behaviour from a
 documentation tool. (Yes, I know the technical reasons why it does it at
 the moment, but it is still very surprising).

 Related: comments in ticket #101.

-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/135>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool


More information about the Haddock mailing list