> I have a whish for the GHC `making' possibilities.
> 
> ghc-5*  -package-name --make 
> 
> is said trying to replace Makefile. But it is half-successful.
> * First, it needs  -ohi  option working 
>   (to move .hi -s to chosen directory).

I've added a -hidir option which should do the right thing.

> * Second, could GHC provide options for creating libraries, 
>   adding to library?

This might make it easier to build a library from Haskell files, but it
would also be duplicating functionality that is already available.  I
don't see it as a priority, I'm afraid.

> Explanation.
> With  ghc-4,  I used Makefile and  -odir, -ohi  options to provide
> the project installation. 
> Makefile  contained 
>   (1)
>   the project directory tree description,
>   variables holding the list of names for the  .hs, .hi, .o  files, 
>   rules to convert  .hs --> .o,  and such.
> Also it contained the library creation part:
>   (2)
>   foo:        $(objectFiles)
>         ar -q   export/libHSfoo.a  `ls export/*.o`
>         ranlib  export/libHSfoo.a
>         rm -f   `ls export/*.o`

So you can use the same makefile, but you can replace part (1) with a
single rule which uses --make.

Cheers,
        Simon

_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to