Help Creating Libraries

Simon Peyton-Jones simonpj@microsoft.com
Mon, 14 Apr 2003 09:14:51 +0100


Aha. It seems that the libraries tree is not independent of the 'ghc'
tree; this is because the 'base/GHC/' subtree is absolutely GHC
specific.

The quickest workaround is to check out ghc/ as well as libraries/, and
say 'make boot' in the ghc tree.  Don't forget to do the 'configure'
stuff.

Also, compiling the libraries tree probably assumes that you want to use
the ghc in the same tree.  You may need to add 'HC=3Dghc' to your 'make'
calls.

Simon

| -----Original Message-----
| From: Dominic Steinitz [mailto:dominic.steinitz@blueyonder.co.uk]
| Sent: 12 April 2003 12:09
| To: Simon Marlow; Simon Peyton-Jones
| Cc: libraries-request@haskell.org; glasgow-haskell-users@haskell.org
|=20
| I've tried building the libraries tree but got the following. Can
anyone
| help?
|=20
| I'm not sure what name to give the proposed crypto library. Should it
be
| Data.Crypto?
|=20
| [dom@tility libraries]$ make boot
|
------------------------------------------------------------------------
| =3D=3D=3Dfptools=3D=3D Recursively making `boot' in base haskell98 =
network
haskell-src
| ...
| PWD =3D /home/dom/fptools/libraries
|
------------------------------------------------------------------------
|
------------------------------------------------------------------------
| =3D=3Dfptools=3D=3D make boot -r;
|  in /home/dom/fptools/libraries/base
|
------------------------------------------------------------------------
| make[1]: *** No rule to make target `/prelude/primops.txt', needed by
| `GHC/PrimopWrappers.hs'.  Stop.
| make: *** [boot] Error 1
| [dom@tility libraries]$
|=20
| Dominic Steinitz
| ----- Original Message -----
| From: "Simon Marlow" <simonmar@microsoft.com>
| To: "Simon Peyton-Jones" <simonpj@microsoft.com>; "Dominic Steinitz"
| <dominic.steinitz@blueyonder.co.uk>
| Sent: Friday, April 11, 2003 10:48 AM
| Subject: RE: Help Creating Libraries
|=20
|=20
| Hi Dominic,
|=20
| There are two ways to add libraries: do it directly in a GHC tree
using
| our build infrastructure, or try to do it on your own.  We tried to
get
| some interest going in developing a separate build infrastructure for
| people in your position (see discussions on the GHC lists), but that
| effort seems to be stalled.
|=20
| Cheers,
| Simon
|=20
| > -----Original Message-----
| > From: Simon Peyton-Jones
| > Sent: 07 April 2003 08:51
| > To: Dominic Steinitz; Simon Marlow
| > Cc: Simon Peyton-Jones
| >
| > Dominic
| >
| > Excellent!  Simon is the library king, but he's away today.
| > I think it goes like this: you agree with Simon (and
| > preferably the libraries@haskell.org) libraries list what the
| > name and signature of your module will be.  We give you CVS
| > access.  You check out the libraries tree (no need to build
| > GHC if you don't want to) and add your library.  With Haddock
| > documentation.  That's it.
| >
| > But it ought to be documented -- then more people might do it!
| >
| > Simon
| >
| > | -----Original Message-----
| > | From: Dominic Steinitz [mailto:dominic.steinitz@blueyonder.co.uk]
| > | Sent: 06 April 2003 17:09
| > | To: Simon Peyton-Jones; Simon Marlow
| > |
| > | Simon & Simon,
| > |
| > | I'd quite like to create a crypto library. There are some
| > modules already
| > | scattered around the place: md5, sha1, des and rsa. I've
| > just added cipher
| > | block chaining mode to the existing des module.
| > |
| > | I'd be grateful for any advice on how to set about creating
| > a library. Do I
| > | have to check out the ghc source from CVS and build it and
| > somehow add an
| > | extra library? Is there a document describing how to do it?
| > Should I be
| > | asking this question on the libraries mailing list?
| > |
| > | Dominic Steinitz
| > |
| >
| >
|=20