Re: help need

2002-04-15 Thread Arjan van IJzendoorn
Hi Benny, instance (Float a) = Num (Poly a) where x + y = addPoly x y I got the Cannot use type synonym in instance head error message when I was trying to compile the above code. Can you tell me why and how to solve it? Unfortunately, you can not instantiate a class

HCAR (May edition) - call for contacts and contributions

2002-04-15 Thread C.Reinke
Dear fellow Haskeller, it is time again - for contributions to the second edition of the Haskell Communities and Activities Report http://www.haskell.org/communities/ The current plan is to get contributions in by the end of April, and to get the collective report out early next month

Feeling Old? We Can Help!

2002-04-15 Thread Unknown
Hello, [EMAIL PROTECTED],As seen on NBC, CBS, CNN, and even Oprah! The health discovery that actually reverses aging while burning fat, without dieting or exercise! This proven discovery has even been reported on by the New England Journal of Medicine. Forget aging and dieting

scoped type variables in instance?

2002-04-15 Thread Ross Paterson
GHC (even without -fglasgow-exts) rejects the following: newtype Foo a = Foo a instance Eq a = Eq (Foo a) where Foo x == Foo y = bar where bar :: a bar = undefined It seems to treat the inner a as bound

Re: scoped type variables in instance?

2002-04-15 Thread Jay Cox
On Mon, 15 Apr 2002, Ross Paterson wrote: GHC (even without -fglasgow-exts) rejects the following: newtype Foo a = Foo a instance Eq a = Eq (Foo a) where Foo x == Foo y = bar where bar :: a bar = undefined

Re: scoped type variables in instance?

2002-04-15 Thread Jay Cox
On Mon, 15 Apr 2002, Jay Cox wrote: class Eq z where (==) :: z - z - Bool Oops. Here to report a Jay.Brain bug. I understand you now. Heh. I infered the bug you report was standard haskell usage. Here's a more dramatic example of your bug :)

-O2

2002-04-15 Thread Saswat Anand
Hi, In my program I observe that, with -O2 flag turned on, Program 1 behaves like Program 2. And without O2, their outputs are different. Is it the desirable behaviour? For my program, I did not expect the optimizer to do this transformation. Thanks, Saswat Program 1: eval = \..-

New Patches Binary for MacOS X

2002-04-15 Thread Wolfgang Thaller
Here are some new patches for GHC for MacOS X. The patches are relative to the CVS HEAD from 9th of April. I also have prepared a binary snapshot [a double-clickable installer package this time], but as last time, I don't have the webspace to upload it myself - I'd be happy to FTP it wherever

ghc-pkg (5.03.20020204) problems

2002-04-15 Thread George Russell
Can you stop ghc-pkg complaining when it can't find the library for a package, and insert the package into its configuration file? Some of my scripts rely on being able to build the package.conf file ahead of time. What with this, and because ghc-pkg doesn't seem able to cope with private

ghc5.03 .hi and .hi-boot files don't you just love those incompatible changes?

2002-04-15 Thread George Russell
Formerly .hi and .hi-boot files had the same format; however ghc5.03 has a binary format for .hi files and a textual one for .hi-boot files. This is a nuisance for me, because I have an ingenious scheme by which .hi-boot files are themselves from Haskell files by ghc, which thinks it is

max heap exhausted

2002-04-15 Thread Hal Daume III
What does it mean when my program tells me: fatal error: RTS exhausted max heap size (268435456 bytes) ? My initial understanding was the GHC allocated (perhaps dynamically) a heap of unlimited size (at least so says +RTS -help) and when I run my (long memory grabbing) program without any

Re: max heap exhausted

2002-04-15 Thread Sigbjorn Finne
Have a look the the -M RTS option (default is 256M on Win32, not unlimited.) --sigbjorn - Original Message - From: Hal Daume III [EMAIL PROTECTED] To: GHC Users Mailing List [EMAIL PROTECTED] Sent: Monday, April 15, 2002 08:04 Subject: max heap exhausted What does it mean when my

Re: ASSISTANCE NEEDED.

2002-04-15 Thread Ketil Z. Malde
Brian Tawney [EMAIL PROTECTED] writes: REQUEST FOR ASSISTANCE- STRICTLY CONFIDENTIAL This is a common scam. It is also a common spam. How about closing the list for non-subscribers? -kzm -- If I haven't seen further, it is by standing in the footprints of giants

Re: ASSISTANCE NEEDED.

2002-04-15 Thread Jerzy Karczmarczuk
Ketil Z. Malde: Brian Tawney [EMAIL PROTECTED] writes: REQUEST FOR ASSISTANCE- STRICTLY CONFIDENTIAL This is a common scam. It is also a common spam. How about closing the list for non-subscribers? Please, be positive! DR DAN MOMOH: I amDR. DAN MOMOH, an accountant in the