No objectIO in latest GHC

2002-11-12 Thread Martijn
Hey guys, Is there a reason why the objectIO package is not part of the latest GHC release for windows? Cheers, Martijn ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Floats and Doubles

2002-11-12 Thread Juan Ignacio Garcia Garcia
hello, I have been using some of the functions of the classes Real and Fractional and I have observed that with the funcion toRational we can obtain the fraction that represents a given number. For instance: *P2 toRational (5.2::Float) 5452595 % 1048576 Why we obtain this numbers instead of 52 %

RE: Floats and Doubles

2002-11-12 Thread Simon Marlow
I have been using some of the functions of the classes Real and Fractional and I have observed that with the funcion toRational we can obtain the fraction that represents a given number. For instance: *P2 toRational (5.2::Float) 5452595 % 1048576 Why we obtain this numbers instead of 52

Re: Floats and Doubles

2002-11-12 Thread Lennart Augustsson
Yes, they all seem to be right. You get these funny effects because numbers like 5.2 do not have an exact representation with floating point numbers in base to (like Float and Double most likely have on your machine). The number 5.2 is stored as a slightly different number as a Float, but the

Re: Floats and Doubles

2002-11-12 Thread Jerzy Karczmarczuk
Lennart Augustsson wrote: The number 5.2 is stored as a slightly different number as a Float, but the toRational function is exact so it gives you the number corresponding to the internal representation. Take a course on numerical analysis. :) Nope. Take a course entitled: Why all you

Re: RFC: External library infrastructure

2002-11-12 Thread Andrew J Bromage
G'day all. On Tue, Nov 12, 2002 at 05:25:42PM +, Alastair Reid wrote: So as people try to come up with a distribution and build mechanism that will work for GHC, it would be good to think about how that same mechanism would work for Hugs too. If you will allow me to AOL... Me too!

Re: RFC: External library infrastructure

2002-11-12 Thread Alastair Reid
Could you be more concrete? What extension of the package mechanism did you have in mind? (personally I had in mind a standard autoconf + Makefiles story for the build system, but I'm sure there are better ways). I was thinking add all the things that make packages insufficient to use as

Record of STRefs better than STRef to a Record?

2002-11-12 Thread Jorge Adriano
Hi all, If I use an STRef to a record, will a new record be created each time I want to update a single field? Or can I expect GHC to optimize it and have the field of the record updated in place? Right now I'm using a record of STRefs, like: data E s = E{ refi :: STRef s Int,

Re: HCA Report: Haskell 98 Report copyright

2002-11-12 Thread Ketil Z. Malde
Ian Lynagh [EMAIL PROTECTED] writes: I note with some sadness the more restrictive license that may be placed on the Haskell 98 Report, as reported by the HCA. I have a hard time imagining what this actually means. The report, as it is licensed now allows for: I have just grabbed a copy of

Re: HCA Report: Haskell 98 Report copyright

2002-11-12 Thread Ross Paterson
On Tue, Nov 12, 2002 at 01:19:03AM +, Ian Lynagh wrote: I note with some sadness the more restrictive license that may be placed on the Haskell 98 Report, as reported by the HCA. The great openness/freeness of haskell, both the report and implementations, is, IMO, one of its most important

Report and web site

2002-11-12 Thread Iavor S. Diatchki
hi, now that the report is pretty much stable, are there any plans of putting it on the Haskell web site? bye iavor -- == | Iavor S. Diatchki, Ph.D. student | | Department of Computer Science and Engineering | | School of OGI at

Re: Report and web site

2002-11-12 Thread John Peterson
Yes - we'll have the new report up soon. Once Simon quits messing with it :-). John ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

showsPrec: cui bono?

2002-11-12 Thread Jerzy Karczmarczuk
A simple, primitive question: has anybody here used in a non-trivial way the showsPrec anti-parser? My students asked me what is it for, it is never used in the Hugs Prelude, OK, once: possible parentheses around fractions n%d. I explained that it is a good contraption to make one own pretty-

Re: showsPrec: cui bono?

2002-11-12 Thread C.Reinke
has anybody here used in a non-trivial way the showsPrec anti-parser? Isn't the idea to make things trivial while avoiding performance penalties? Perhaps: simple pretty-printing of abstract syntax trees? I often use it to get simple debugging output for complex internal data structures (first,

Calling Haskell from Python / C++

2002-11-12 Thread Jonathan Holt
Hi, I've just recently learned about Haskell, and I'm impressed by the abstractions and expressiveness that it affords. I'm particularly interested in it for a small parser project that I'm planning. However, my main programming languages are Python and C++, and for various reasons switching

Haskell98 Report copyright

2002-11-12 Thread Christopher Milton
I hope we don't have a repeat of the MathWorld website shutdown.* I also can't find a webpage with the definition of Standard ML... only avaible in print from MIT Press? Chris * http://mathworld.wolfram.com/erics_commentary.html = Christopher Milton [EMAIL PROTECTED]

1 line simple cat in Haskell

2002-11-12 Thread Ahn Ki-yung
If you are steaming with compicated codes, then how about taking a break. Let's play with a simple cat. \begin{code} main = mapM (=putChar) getCharS where getCharS = getChar:getCharS \end{code} Tested with ghc. Works good except that you get some messages on stderror because eof is not