Re: [Haskell-cafe] GHC Out of memory

2010-11-23 Thread Christopher Done
What version of GHC/qtHaskell?

On 23 November 2010 08:21, John Smith volderm...@hotmail.com wrote:

 I get an out-of-memory error about two thirds of the way through building
 qtHaskell. If I start again, the remaining modules are compiled
 successfully, although GHC's memory usage creeps up to about 1.5Gb by the
 time it's finished. Is there a memory leak?

 (Compiling on Win64 with 4Gb RAM.)

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Wrong Package-URL in regex-tdfa.cabal

2010-11-23 Thread José Romildo Malaquias
Hello.

The cabal file for the regex-tddfa-1.1.6 package seems to have an
invalid URL for the Package-URL field:

Package-URL: http://darcs.haskell.org/packages/regex-unstable/regex-tdfa/

It should be fixed.

Regards.

Romildo
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Why does cabal unnecessarily reinstall dependencies?

2010-11-23 Thread Nicolas Maupu
On Mon, Nov 22, 2010 at 22:26, Martijn van Steenbergen
mart...@van.steenbergen.nl wrote:
 Hello cafe,
Hello


 When I want to locally install my own package through cabal install it
 tries to reinstall dependencies convertible-1.0.9.1, HDBC-2.2.6.1 and
 HDBC-mysql-0.6.3 even though they are already installed (and work fine). Why
 does it do this?

 cabal-install version 0.8.2
 using version 1.8.0.2 of the Cabal library
 Mac OS Leopard


I had exactly the same problem on Mac OS snow leopard.
My cabal package was just broken, wrongly installed, or whatever (I
installed it from mac ports).
The solution is to deinstall it and to install it from tarball as
explained here :
http://jan.varwig.org/archive/getting-cabal-to-run-on-mac-os-x-leopard
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Why does cabal unnecessarily reinstall dependencies?

2010-11-23 Thread Erik Hesselink
It might be that it both your own package and the dependencies cabal
tries to reinstall all depend on some package P. If the dependencies
are installed depending on P version 1, but to satisfy all
dependencies for your own package, cabal needs them to depend on P
version 2, cabal will reinstall them (possibly breaking other packages
that depend on them; is this a bug?)

You can see if this is the case by running 'cabal install --dry-run -v'.

Erik

On Mon, Nov 22, 2010 at 22:26, Martijn van Steenbergen
mart...@van.steenbergen.nl wrote:
 Hello cafe,

 When I want to locally install my own package through cabal install it
 tries to reinstall dependencies convertible-1.0.9.1, HDBC-2.2.6.1 and
 HDBC-mysql-0.6.3 even though they are already installed (and work fine). Why
 does it do this?

 cabal-install version 0.8.2
 using version 1.8.0.2 of the Cabal library
 Mac OS Leopard

 Thanks,

 Martijn.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-Cafe] VNC server in Haskell

2010-11-23 Thread C K Kashyap
Hi,
I've implemented a VNC server (very incomplete) - What it can do
currently is display a blue screen (100x100 screen).

It's very trivial to try out - https://github.com/ckkashyap/Chitra

I look forward to some feedback/comments on this.

-- 
Regards,
Kashyap
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Why does cabal unnecessarily reinstall dependencies?

2010-11-23 Thread Christian Maeder
I've noticed that ghc-6.10.4 did not work well with cabal-install
version 0.8.2. (cabal install gtk did not work.)

Everything was fine after I switched back to:

cabal-install version 0.6.2
using version 1.6.0.3 of the Cabal library

and removing the Cabal 1.8... library package.

Cheers Christian

Am 22.11.2010 22:26, schrieb Martijn van Steenbergen:
 Hello cafe,
 
 When I want to locally install my own package through cabal install it
 tries to reinstall dependencies convertible-1.0.9.1, HDBC-2.2.6.1 and
 HDBC-mysql-0.6.3 even though they are already installed (and work fine).
 Why does it do this?
 
 cabal-install version 0.8.2
 using version 1.8.0.2 of the Cabal library
 Mac OS Leopard
 
 Thanks,
 
 Martijn.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: Cabal-install is broken

2010-11-23 Thread Christian Maeder
Am 22.11.2010 23:16, schrieb Permjacov Evgeniy:
 current cabal-install (0.8.2) cannot be compiled with ghc-7.0.1 set of
 boot libraries. It requires cabal 1.8.* wich fails to compile. Does
 anyone worked this out ?

You can re-use your old cabal binary (if you still have it) that was
compiled with ghc-6.

Alternative get cabal-install from
http://darcs.haskell.org/cabal-install/ and adjust the file
cabal-install.cabal (if it did not change meanwhile).

http://www.haskell.org/pipermail/glasgow-haskell-users/2010-September/019252.html

Christian
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: Re: Reply-To: Header in Mailinglists

2010-11-23 Thread Tillmann Rendel

Hi,

Nick Bowler wrote:

There is another header, Mail-Followup-To, which tells MUAs to also drop
the To and CC lists.


Interesting. So is it a good idea to use Mail-Followup-To to move a 
discussion from one list to another?


  To: hask...@haskell.org
  CC: haskell-cafe@haskell.org
  Mail-Followup-To: haskell-cafe@haskell.org
  Subject: Foo on the iPhone (was: [Haskell] [ANN] Foo released!)

Or should I rather swap To and CC? Or leave out hask...@... completely?

  Tillmann
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC Out of memory

2010-11-23 Thread Stefan Kersten
On 23.11.10 09:36, Christopher Done wrote:
 What version of GHC/qtHaskell?

i've also noticed this on linux and osx with ghc 6.12.1/6.12.3 and qtHaskell
1.1.3.5/1.1.4. possibly a memory leak in ghc --make?

sk
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: GHC Out of memory

2010-11-23 Thread John Smith

On 23/11/2010 10:36, Christopher Done wrote:

What version of GHC/qtHaskell?


GHC 6.12.3, qtHaskell 1.1.4

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Musings on type systems

2010-11-23 Thread Andrew Coppin

On 20/11/2010 08:42 AM, Tillmann Rendel wrote:

Hi Andrew,

Andrew Coppin wrote:

Now, what about type variables? What do they do? Well now, that seems to
be slightly interesting, since a type variable holds an entire type
(whereas normal program variables just hold a single value), and each
occurrance of the same variable is statically guaranteed to hold the
same thing at all times. It's sort of like how every instance of a
normal program variable holds the same value, except that you don't
explicitly say what that value is; the compiler infers it.


What do you mean by hold the same thing at all times?

Consider the following program:

  id :: forall a . a - a
  id x = x

  call1 :: Bool
  call1 = id True

  call2 :: Int
  call2 = id 42

This program contains a type variable a, and a value variable x. Now, 
these variables do *not* mean the same thing at all times. In the 
first call of id, a is Bool and x is True; but in the second call of 
id, a is Int and x is 42. If these variables would mean the same thing 
at all times, I would expect them to be called constants, wouldn't you?


That would be why I said instance of a variable, rather than 
variable. (There's also the alpha conversion problem, for example.)


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe