Re: network package

2008-01-13 Thread C.M.Brown
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

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: network package

2008-01-13 Thread Don Stewart
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
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: network package

2008-01-13 Thread C.M.Brown

 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?

[EMAIL PROTECTED] ~/filepath-1.0 $ which runghc
/usr/local/packages/ghc-6.8.2/bin/runghc


Cheers,
Chris

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: network package

2008-01-13 Thread Don Stewart
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?
 
 [EMAIL PROTECTED] ~/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
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: network package

2008-01-13 Thread Ian Lynagh
On Sun, Jan 13, 2008 at 10:05:36PM +, 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?
 
 [EMAIL PROTECTED] ~/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

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: network package

2008-01-13 Thread C.M.Brown
 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).

Excellent, that worked a treat! thanks.

Chris.



 Thanks
 Ian


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: network package

2008-01-11 Thread Don Stewart
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
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: network package

2008-01-11 Thread Matthias Kilian
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):

NameDistGHC-6.8.2   Hackage

Cabal   base1.2.3.0
HUnit   extra   1.2.0.0
OpenGL  extra   2.2.1.1
QuickCheck  extra   1.1.0.0
array   base0.1.0.0
basebase3.0.1.0 n/a
bytestring  base0.9.0.1 0.9.0.3
cgi extra   3001.1.5.1
containers  base0.1.0.1 0.1.0.0 (!)
directory   base1.0.0.0
fgl extra   5.4.1.1
filepathbase1.1.0.0
ghc base6.8.2   n/a
haskell-src extra   1.0.1.1
haskell98   base1.0.1.0
hpc base0.5.0.0
htmlextra   1.0.1.1
mtl extra   1.1.0.0
network extra   2.1.0.0
old-locale  base1.0.0.0
old-timebase1.0.0.0
packedstringbase0.1.0.0
parallelextra   1.0.0.0
parsec  extra   2.1.0.0
pretty  base1.0.0.0
process base1.0.0.0
random  base1.0.0.0
readlinebase1.0.1.0
regex-base  extra   0.72.0.10.91
regex-compatextra   0.71.0.10.90
regex-posix extra   0.72.0.20.91
rts base1.0 n/a
stm extra   2.1.1.0
template-haskellbase(!) 2.2.0.0
timeextra   1.1.2.0
unixbase2.3.0.0 2.2.0.0 (!)
xhtml   extra   3000.0.2.1


Ciao,
Kili
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users