Re: [Haskell-cafe] ghc install

2004-12-11 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> Radu Grigore <[EMAIL PROTECTED]> writes: > Hi, > > I try to install ghc on 6.2 on a gentoo linux distribution (from > sources). It fails with You are most welcome to report Haskell issues on Gentoo in the Gentoo bugzilla: http://bugs.gentoo.org/ We're fairly good a

[Haskell-cafe] ghc install

2004-12-11 Thread Radu Grigore
Hi, I try to install ghc on 6.2 on a gentoo linux distribution (from sources). It fails with --- /usr/bin/ar: creating libHSbase.a xargs: /usr/bin/ar: terminated by signal 15 --- It looks like it's a lack of resources. The computer is a Celeron 1.3GHz with 160MB RAM & 400MB swap. Isn't that enough

Re: [Haskell-cafe] Class Synonyms - example 2

2004-12-11 Thread Jorge Adriano Aires
> Jorge, > > > Besides the case where 'a' is the same as 'b', there is also another > > interesting case. That is when you have both, Foo A B and Foo B A. > > This is a > > known property (named DoubleFoo) [...] > > Again, with -fallow-undecidable-instances: > > \begin{code} > class (Foo a b, Foo

Re: [Haskell-cafe] Processing File Dependencies

2004-12-11 Thread Jon Fairbairn
On 2004-12-11 at 16:00GMT "chris beddoe" wrote: > Hey, please don't send mail in html > I have been trying to program a simple Haskell program that allows me > to input a list of Java files and their dependencies Judging from what appears below, you should probably start with something simp

[Haskell-cafe] Flattening tail recursion?

2004-12-11 Thread Derek Elkins
> intermediate thunk has already been built. You need a separate "strict > foldl" function, usually called foldl', which was unaccountably > omitted from the prelude. There is one in Data.List. ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.

[Haskell-cafe] Processing File Dependencies

2004-12-11 Thread chris beddoe
Hey, I have been trying to program a simple Haskell program that allows me to input a list of Java files and their dependencies (i.e. other files which they rely upon) and have come across some very stubborn problems. > semiColon :: Char -> Bool> semiColon ':' = True> semiColon _ = False > getFDep

Re: [Haskell-cafe] Class Synonyms - example 2

2004-12-11 Thread Stefan Holdermans
Jorge, Besides the case where 'a' is the same as 'b', there is also another interesting case. That is when you have both, Foo A B and Foo B A. This is a known property (named DoubleFoo) [...] Again, with -fallow-undecidable-instances: \begin{code} class (Foo a b, Foo b a) => DoubleFoo a b instance

Re: [Haskell-cafe] Class Synonyms

2004-12-11 Thread Stefan Holdermans
Jorge, I'd like to achieve something better than this. I was looking for something like "class synonyms". So if I declared an instance Foo A A, I automagicaly had Bar A, because they'd be the same. Using -fallow-undecidable-instances (in GHC) you could do: \begin{code} class Foo a b | a -> b wher