gcd definition

2001-12-16 Thread S.D.Mechveliani
Simon Peyton-Jones [EMAIL PROTECTED] writes [..] If someone could write a sentence or two to explain why gcd 0 0 = 0, (ideally, brief ones I can put in the report by way of explanation), I think that might help those of us who have not followed the details of the discussion. Here it

Re: gcd 0 0 = 0

2001-12-16 Thread Marc van Dongen
Marc van Dongen ([EMAIL PROTECTED]) wrote: : An integer $a$ divides integer $b$ if there exists an integer : $c$ such that $a c= b$. [snip] : gcd 0 0 = 0; and : gcd 0 0 /= error Blah To make clear why $0$ (and not any other non-zero integer) is the gcd of $0$ and $0$ I should have added

ANNOUNCE: GCJNI - Java Native Interface for Haskell

2001-12-16 Thread Antony Courtney
I am pleased to announce an experimental release of GCJNI. GCJNI is a library that allows Haskell to invoke Java code via the Java Native Interface (JNI). The implementation uses GreenCard to make the JNI (a C language interface) available to Haskell. GCJNI includes a few convenient features,

ANNOUNCE: Haven - Scalable Vector Graphics for Haskell

2001-12-16 Thread Antony Courtney
I am pleased to announce an experimental release of Haven, a library for scalable vector graphics in Haskell. Haven provides a wealth of features, including: - Data types for common geometric shapes such as rectangles, ellipses and Bezier curves. - Composition of arbitrary shapes from

Re: ANNOUNCE: GCJNI - Java Native Interface for Haskell

2001-12-16 Thread Ashley Yakeley
At 2001-12-16 12:53, Antony Courtney wrote: I am pleased to announce an experimental release of GCJNI. Eh, you beat me to a first release, which I was going to announce yesterday, but SourceForge's file release system is currently broken. I guess I'll have to put it on semantic.org I had no

ANN: Release 0.1 of Haskell/Java VM Bridge

2001-12-16 Thread Ashley Yakeley
The first release, 0.1, of Haskell/Java VM Bridge is now available. Haskell/Java VM Bridge allows Haskell programs access to the Java Virtual Machine. Features include: * On-the-fly creation of Java classes with Haskell functions for methods. * Lifted monads which do all the

Re: ANNOUNCE: GCJNI - Java Native Interface for Haskell

2001-12-16 Thread Antony Courtney
Hi Ashley, I'm not quite sure why you Cc'ed the whole Haskell list in replying to my release announcement, but just for clarification: Ashley Yakeley wrote: I had no idea anyone else was working on this. I find it odd you would say that. When you first mentioned your interest in the JNI

space efficiency question

2001-12-16 Thread Frank Dellaert
I'm not a compiler/interpreter implementer, just a Haskell user :-) My question is: if I have two datatypes, say newtype Attributes = Att [String] data Instance = Instance Attributes [Int] where an Attributes value describes the discrete attributes that are stored (as Int) in an Instance.

Position calculations in HsParser

2001-12-16 Thread Anders Lau Olsen
HsParser miscalculates column-positions if qualified names are used. The problem seems to be the lexer forgetting to count the '.' in the qualified name when deciding how much to move forward. In this function, for instance, f M.A M.B M.C = 0 ^ HsParser reports that the '='

GHC doesn't accept data types with 0 fielddecls

2001-12-16 Thread Ian Lynagh
Hi guys, With the module data Foo = Foo {} ghc tells me tt.lhs:2: parse error on input `}' while the report allows this. Thanks Ian ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED]

ANN: Release 0.1 of Haskell/Java VM Bridge

2001-12-16 Thread Ashley Yakeley
The first release, 0.1, of Haskell/Java VM Bridge is now available. Haskell/Java VM Bridge allows Haskell programs access to the Java Virtual Machine. Features include: * On-the-fly creation of Java classes with Haskell functions for methods. * Lifted monads which do all the

sending values between actions

2001-12-16 Thread Nuno Silva
can anyone tell me how to send values from one action to another??? I have main0 = do s - getLine writeFile text.txt s main1 = do I'd like to use main0 info on main1 action to build a nXm multisquares box... anyone understood this please help...

Re: sending values between actions

2001-12-16 Thread Dmitry Astapov
NS can anyone tell me how to send values from one action to another??? NS I have NS main0 = do s - getLine writeFile text.txt s NS main1 = do NS I'd like to use main0 info on main1 action to build a nXm multisquares NS box... anyone understood this please help... First of