[Haskell-cafe] Cabal

Don Stewart dons at galois.com
Sun Nov 30 14:56:29 EST 2008


daniel.is.fischer:
> Am Sonntag, 30. November 2008 20:46 schrieb Don Stewart:
> > andrewcoppin:
> > > Thomas Schilling wrote:
> > > >Cabal-the-install-tool (package "cabal-install") is actually a
> > > >different program that sits on top of Cabal-the-library, and it is in
> > > >fact what really provides the real advantages.  Together with Hackage
> > > >this is what provides the killer feature of "cabal install foo",
> > > >however it relies on the building features and meta-data of Cabal.
> > >
> > > As I understand it, that's also a seperate download. (Whereas the cabal
> > > library comes with GHC.)
> > >
> > > One day, if I feel hard-core enough, I might try this tool. (Assuming it
> > > works on Windows...) It sounds potentially useful. (Although most actual
> > > packages typically have one, maybe two dependencies that aren't already
> > > installed, if that.)
> >
> > *if* .. *might* .. *assuming* .. *potentially* .. *maybe* .. *if*..
> >
> > You could have built it by now!
> >
> >     Source:
> >        
> > http://hackage.haskell.org/packages/archive/cabal-install/0.6.0/cabal-insta
> >ll-0.6.0.tar.gz
> >
> >     Dependencies that aren't in core:
> >        
> > http://hackage.haskell.org/packages/archive/HTTP/3001.1.5/HTTP-3001.1.5.tar
> >.gz
> > http://hackage.haskell.org/packages/archive/zlib/0.5.0.0/zlib-0.5.0.0.tar.g
> >z
> >
> > Note the last one assumes you have zlib the C library installed. This
> > should be straight forward to obtain.
> 
> Not even necessary, it comes with its own for windows:
>   if !os(windows)
>     -- Normally we use the the standard system zlib:
>     extra-libraries: z
>   else
>     -- However for the benefit of users of Windows (which does not have zlib
>     -- by default) we bundle a complete copy of the C sources of zlib-1.2.3
>     c-sources:     cbits/adler32.c cbits/compress.c cbits/crc32.c
>                    cbits/deflate.c cbits/gzio.c cbits/infback.c
>                    cbits/inffast.c cbits/inflate.c cbits/inftrees.c
>                    cbits/trees.c cbits/uncompr.c cbits/zutil.c
> 
> 

Even easier.

Now there's no excuse for the ifs and buts and maybes.

-- Don


More information about the Haskell-Cafe mailing list