Re: [Haskell-cafe] Re: Lazy HTML parsing with HXT, HaXML/polyparse, what else?

2007-05-12 Thread Novák Zoltán
Hi, What results should a lazy parser return before emitting ⊥? At the time you read the html-tag, you cannot know whether a syntax error far down in the file makes it invalid. Thus, you may not return the top-most html-tag until you see the closing /html. But to return the top most html you

Re: [Haskell-cafe] Fractional sqrt

2007-01-19 Thread Novák Zoltán
Hi, Thanks for the answers. The best solution would be a general purpose  arbitrary precision math library for Haskell. I found two: http://medialab.freaknet.org/bignum/ http://r6.ca/FewDigits/ I think both uses power series and have trigonometric functions too. (I only need sqrt, so probably I

[Haskell-cafe] Fractional sqrt

2007-01-18 Thread Novák Zoltán
Hello, I would like to use the sqrt function on Fractional numbers. (mysqrt :: (Fractional a) = a-a) Half of the problem is solved by: Prelude :t (realToFrac.sqrt) (realToFrac.sqrt) :: (Fractional b, Real a, Floating a) = a - b For the other half I tried: Prelude :t