
Hi, I have just built and installed ghc-6.8.2 on my linux box but I can't find the network package. Has it been moved or left out? Kind regards, Chris.

cmb21:
Hi,
I have just built and installed ghc-6.8.2 on my linux box but I can't find the network package. Has it been moved or left out?
It's not installed by default. You can find it on hackage.haskell.org, http://hackage.haskell.org/cgi-bin/hackage-scripts/package/network-2.1.0.0 As the Haskell community is moving to a more distributed development model (with a central archive). You can also build and install 'cabal-install', to make installation easy. $ cabal install network Cheers, Don

On Fri, Jan 11, 2008 at 09:32:20AM -0800, Don Stewart wrote:
I have just built and installed ghc-6.8.2 on my linux box but I can't find the network package. Has it been moved or left out?
It's not installed by default. You can find it on hackage.haskell.org,
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/network-2.1.0.0
Yet it's still available in the extralibs tarball. Real slackers just extract extralibs on top of the normal ghc source tarball to get most (not all) of the beloved packages built for free. Just FYI, here are some notes I scribbled down for myself a few days ago when I did some work on the OpenBSD port of GHC (comparing 6.6.1 against 6.8.2 and comparing that against hackage.haskell.org): New (wrt 6.6.1): array, bytestring, containers, directory, hpc, old-locale, old-time, packedstring, parallel, pretty, process, random. Removed from the ghc sources (make separate ports fetching them from hackage): HGL, X11. Note that X11-extras (i.e. port x11/hs-x11-extras) is obsolete now. Available in the extralibs distfile: HUnit, OpenGL, QuickCheck, cgi, fgl, haskell-src, html, mtl, network, parallel, parsec, regex-base, regex-compat, regex-posix, stm, time, xhtml. Version info for packages (no version in "Hackage" column means same version as for GHC-6.8.2): Name Dist GHC-6.8.2 Hackage Cabal base 1.2.3.0 HUnit extra 1.2.0.0 OpenGL extra 2.2.1.1 QuickCheck extra 1.1.0.0 array base 0.1.0.0 base base 3.0.1.0 n/a bytestring base 0.9.0.1 0.9.0.3 cgi extra 3001.1.5.1 containers base 0.1.0.1 0.1.0.0 (!) directory base 1.0.0.0 fgl extra 5.4.1.1 filepath base 1.1.0.0 ghc base 6.8.2 n/a haskell-src extra 1.0.1.1 haskell98 base 1.0.1.0 hpc base 0.5.0.0 html extra 1.0.1.1 mtl extra 1.1.0.0 network extra 2.1.0.0 old-locale base 1.0.0.0 old-time base 1.0.0.0 packedstring base 0.1.0.0 parallel extra 1.0.0.0 parsec extra 2.1.0.0 pretty base 1.0.0.0 process base 1.0.0.0 random base 1.0.0.0 readline base 1.0.1.0 regex-base extra 0.72.0.1 0.91 regex-compat extra 0.71.0.1 0.90 regex-posix extra 0.72.0.2 0.91 rts base 1.0 n/a stm extra 2.1.1.0 template-haskell base(!) 2.2.0.0 time extra 1.1.2.0 unix base 2.3.0.0 2.2.0.0 (!) xhtml extra 3000.0.2.1 Ciao, Kili

Thanks for everyone's help with this so far. However, I'm having some problems using cabal: Whenever I try to runghc Setup.hs install a cabal file (I've tried parsec and network) I get an error message similar to this: Setup.hs: parsec.cabal:15: Unknown field 'build-type' I tried to install Cabal from darcs and I also got an error message when trying to configure: Setup.lhs: cabal-install.cabal:30: Invalid syntax (no colon after field name) Does anyone else have these problems? Or, am I doing something obviously wrong? Thanks, Chris. On Fri, 11 Jan 2008, Don Stewart wrote:
cmb21:
Hi,
I have just built and installed ghc-6.8.2 on my linux box but I can't find the network package. Has it been moved or left out?
It's not installed by default. You can find it on hackage.haskell.org,
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/network-2.1.0.0
As the Haskell community is moving to a more distributed development model (with a central archive).
You can also build and install 'cabal-install', to make installation easy.
$ cabal install network
Cheers, Don

cmb21:
Thanks for everyone's help with this so far. However, I'm having some problems using cabal:
Whenever I try to
runghc Setup.hs install
a cabal file (I've tried parsec and network) I get an error message similar to this:
Setup.hs: parsec.cabal:15: Unknown field 'build-type'
I tried to install Cabal from darcs and I also got an error message when trying to configure:
Setup.lhs: cabal-install.cabal:30: Invalid syntax (no colon after field name)
Looks like your version of cabal is a bit old. Try updating to the 1.2.3 or 1.3 series. You can find it on hackage.haskell.org -- Don

Looks like your version of cabal is a bit old. Try updating to the 1.2.3 or 1.3 series. You can find it on hackage.haskell.org
I'm using the runghc command from ghc-6.8.2, is that right? cmb21@localhost ~/filepath-1.0 $ which runghc /usr/local/packages/ghc-6.8.2/bin/runghc Cheers, Chris

cmb21:
Looks like your version of cabal is a bit old. Try updating to the 1.2.3 or 1.3 series. You can find it on hackage.haskell.org
I'm using the runghc command from ghc-6.8.2, is that right?
cmb21@localhost ~/filepath-1.0 $ which runghc /usr/local/packages/ghc-6.8.2/bin/runghc
That's fine. The issue is that cabal-install requires a new version of 'cabal', which you can find here, http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal-1.2.3.0 Though cabal-install may well require the darcs version of cabal (I'm not sure). http://haskell.org/cabal/code.html -- Don

On Sun, Jan 13, 2008 at 10:05:36PM +0000, C.M.Brown wrote:
Looks like your version of cabal is a bit old. Try updating to the 1.2.3 or 1.3 series. You can find it on hackage.haskell.org
I'm using the runghc command from ghc-6.8.2, is that right?
cmb21@localhost ~/filepath-1.0 $ which runghc /usr/local/packages/ghc-6.8.2/bin/runghc
runghc finds ghc in the path, so it might be using a ghc from /usr/bin or somesuch. Try compiling Setup with ghc 6.8.2 instead (ghc --make Setup). Thanks Ian
participants (4)
-
C.M.Brown
-
Don Stewart
-
Ian Lynagh
-
Matthias Kilian