[Haskell-cafe] Do expression definition

2010-09-13 Thread Alexander Kotelnikov
Hello. http://www.haskell.org/onlinereport/exps.html#sect3.14 a obscure (to me) note which says As indicated by the translation of do, variables bound by let have fully polymorphic types while those defined by - are lambda bound and are thus monomorphic. What actually does it mean? And,

[Haskell-cafe] bug in Network.Browser

2010-08-15 Thread Alexander Kotelnikov
Hello. Yesterday I hit a bug in Network.Browser: connection in the connection pool is not reused if you are connecting to a destination with qualified port (not 80 for HTTP or 80 but explicitly provided like http://www.google.com:80). The reason for the failure is quite trivial, but I had not

[Haskell-cafe] Re: Odd parallel haskell observations (some more numbers)

2010-08-09 Thread Alexander Kotelnikov
Hi. On Mon, 9 Aug 2010 09:44:00 +0200 JG == Jean-Marie Gaillourdet j...@gaillourdet.net wrote: JG JG I am no expert in web server tuning, but I will share my thoughts JG about your approach and expectations nevertheless. I would better think about ghc than about web server. I believe, that

[Haskell-cafe] Typo or on purpose? http://haskell.org/ghc/docs/6.12.2/html/users_guide/lang-parallel.html

2010-08-08 Thread Alexander Kotelnikov
This + 1 in (n1 + n2 + 1) what is it doing there? import Control.Parallel nfib :: Int - Int nfib n | n = 1 = 1 | otherwise = par n1 (pseq n2 (n1 + n2 + 1)) where n1 = nfib (n-1) n2 = nfib (n-2) BTW, same code can be found in Seq no more:

[Haskell-cafe] Odd parallel haskell observations

2010-08-07 Thread Alexander Kotelnikov
Hello. I am exploring haskell features for parallel and cocurrent programming and see something difficult to explain. In brief - asking RTS to use more threads results in awfull drop of performance. And according to 'top' test programm consumes up to N CPUs power. Am I doing something wrong? I

[Haskell-cafe] Re: src/Text/XML/HaXml/Lex.hs:(156, 0)-(160, 22): Non-exhaustive patterns in function white

2010-07-21 Thread Alexander Kotelnikov
at it will be quite tough to proceed. GP GP Alexander, can you send that stream of packets to me? I attach a stream dump. poster.dump Description: Binary data -- Alexander Kotelnikov Saint-Petersburg, Russia ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] Re: src/Text/XML/HaXml/Lex.hs:(156, 0)-(160, 22): Non-exhaustive patterns in function white

2010-07-21 Thread Alexander Kotelnikov
16:26:10 +0200 -- Alexander Kotelnikov Saint-Petersburg, Russia ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: src/Text/XML/HaXml/Lex.hs:(156, 0)-(160, 22): Non-exhaustive patterns in function white

2010-07-21 Thread Alexander Kotelnikov
So updated to HaXml 1.20, haxr 3000.7 Simple calls (which deal with simple data types as integer or regular string) still work. Calls which successfully returned some binary data before do not do so anymore. The error is: Prelude.chr: bad argument: 1177427 Calls which complained about 'white'

[Haskell-cafe] src/Text/XML/HaXml/Lex.hs:(156, 0)-(160, 22): Non-exhaustive patterns in function white

2010-07-20 Thread Alexander Kotelnikov
Hello. I decided to run a couple of test XML-RPC applications using haxr. Everything worked fine while responces from my (actually, other people's) server were something relatively small (a number, a line), but with larger responces (starting around couple of kilobytes) my applications began to

[Haskell-cafe] Re: simple hsql question

2009-08-17 Thread Alexander Kotelnikov
Ok, let me ask it in another way. Is there a good way to access databases, mysql in particular, from haskell program? On Sun, 16 Aug 2009 18:54:32 +0400 AK == Alexander Kotelnikov sa...@myxomop.com wrote: AK AK Hi AK I wanted to see what access to databases HSQL provides and I stumbled in AK

[Haskell-cafe] simple hsql question

2009-08-16 Thread Alexander Kotelnikov
-- Alexander Kotelnikov Saint-Petersburg, Russia ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe