Cabal help please

Simon Marlow simonmar at
Fri Jun 17 04:11:45 EDT 2005

On 16 June 2005 18:12, Adrian Hey wrote:

> On Thursday 16 Jun 2005 4:48 pm, Isaac Jones wrote:
>> "Simon Marlow" <simonmar at> writes:
>>> On 16 June 2005 15:36, Adrian Hey wrote:
>>>> Hello,
>>>> I'm just getting around to tidying up the AVL library and releasing
>>>> a new version and, of course thinking about Cabalising it too. But
>>>> I'm finding difficult to figure out how to do this from the
>>>> Cabal docs and Distribution library haddock.
>>>> Anyway, what I want to do is..
>>>>  Run cpphs on all the sources
>>>>  Compile the results using -split-objs (for ghc at least).
>>> Cabal doesn't support -split-objs at the moment.  To do this you'll
>>> need to write your own Makefile and hook it up to Cabal (possible,
>>> but a bit fiddly I believe).
>> Can someone outline what cabal needs to do to support this?
> I can't answer your question, but I can say using split objs is a
> bit weird if you're not familiar with how ghc does it (dunno
> if you are or not). The split objects don't seem to go in the
> same directory as the main object (in this case a dummy object)
> would go (according to hierarchical name). Instead they seem to
> get placed in the root object directory $(OBJDIR).

-split-objs is a bit weird, and I don't think it currently works with
--make.  So I think the best route is for us to fix GHC first, and then
let you know what the (hopefully minimal) changes to Cabal should be.


More information about the Libraries mailing list