RE: Question about hugs´s DEBUG_SHOWSC

2001-04-13 Thread Chris Angus

is this not the dictionary passing (or whatever)to achieve overloading.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 13 April 2001 06:48
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Question about hugss DEBUG_SHOWSC
 
 
 hi haskellers ...
 
 Im trying to use the hugss flag DEBUG_SHOWSC. Everything 
 seems to work
 fine, except for one(simple?) detail:
 
 When you use Int or Double literals, hugs always add extra variables,
 related to the fromInt/fromDouble aplication. 
 
 For example:
 
 f = 666
 
 should be translated to:
 
 f = fromInt 666
 
 but hugs returns :
 
 f = fromInt v35 666
 
 What is the var. v35 for???, the function fromInt receives 
 just one argument.
 
 
 If the function has parameters, the resulting function has 
 extra-parameters,
 which seems to be out-of-place in both sides of the binding ... 
 here you are a couple of examples:
 
 the  function:
 
 f x = 666 
 
 generates the output:
 
 f o2 o1 = fromInt o2 666
 
 And the reported type for f is: Num a = b - a , which is 
 inconsistent with
 the previous result.
 
 the function:
 
 f x = 666 + x
 
 generates :
 
 f o2 o1 = (+)  o2 (fromInt o2 666) o1
 
 which has similar troubles to the previous example.
 
 What are these extra-variables for? Are they a debug-feature? 
 whats the 
 meaning?
 
 And finally, the obligated question: how can I avoid them? I 
 suppose that
 I have to take a look at the source code, but: whatd be the 
 part which
 is responsible for this(parser,static,type... no please,compiler)?
 
 Thanks in advance.
 
 saludos
 dario estepario ...
 
 -
 Obtn tu correo en www.correo.unam.mx
 UNAMonos Comunicndonos
 
 ___
 Haskell mailing list
 [EMAIL PROTECTED]
 http://www.haskell.org/mailman/listinfo/haskell
 

___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell



Re: ghc 5.00 released??

2001-04-13 Thread Ronald Legere


--- Dylan Thurston [EMAIL PROTECTED] wrote:
 At http://haskel.org/ghc/, there seems to be an
 announcement for ghc
 5.00, released April 9, 2001.  Is this correct?  I
 was surprised not
 to see an announcement posted here.

Yeah, it was announced (yesterday?) on the 
ghc-users list. I havent had a chance to try it yet,
but I browsed the docs a bit. It looks like the
biggest things are : 
GHCi (Interactive GHC! Yeah!!!)
 and inclusion of some higher level marshalling
   utilities for the FFI.  
I like this direction :)

Cheers!

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell