Re: [Haskell-cafe] I don't understand how ST works

2012-06-09 Thread Nicu Ionita
it compiles. Thanks, Nicu Am 08.06.2012 23:15, schrieb Nicu Ionita: Hi, I created a gist with a minimal (still 111 lines) module: https://gist.github.com/2898128 I still get the errors: WhatsWrong.hs:53:5: Couldn't match type `s' with `PrimState (ST s)' `s' is a rigid type variable bound

Re: [Haskell-cafe] I don't understand how ST works

2012-06-08 Thread Nicu Ionita
Actual type: U.MVector s Move In the return type of a call of `mlVec' In the third argument of `genCapts', namely `(mlVec ml)' Thanks, Nicu Am 08.06.2012 02:47, schrieb Silvio Frischknecht: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Now comes my question: in the impure values

[Haskell-cafe] I don't understand how ST works

2012-06-07 Thread Nicu Ionita
... Anybody some hint? Thanks, Nicu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Installation of the New Haskell Platform

2012-06-04 Thread Nicu Ionita
of some warnings (-fglasgow-exts, for example). But the package stream-fusion could not compile, because it's cabal file has an illegal ghc option: -fno-method-sharing. I commented this out and then everything worked fine. Nicu ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Problem with packet documentation generated by cabal on windows 7

2012-05-25 Thread Nicu Ionita
Am 25.05.2012 06:49, schrieb Magnus Therning: On Fri, May 25, 2012 at 01:19:11AM +0200, Nicu Ionita wrote: Hi cafe, I have a problem with haddock documentation created when installing new packages with cabal on windows. The generated html files have all links in the form j:\Users\...\doc

[Haskell-cafe] Problem with packet documentation generated by cabal on windows 7

2012-05-24 Thread Nicu Ionita
wonder if this is only on windows so and if there is a solution to this. Is there a cabal or haddock flag for this? Nicu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Problems with libgmp on Amazon Linux

2012-01-07 Thread Nicu Ionita
Am 07.01.2012 06:04, schrieb Yucheng Zhang: On Sat, Jan 7, 2012 at 8:08 AM, Nicu Ionitanicu.ion...@acons.at wrote: It seemed to work pretty well, with some problems when configuring HP, because although libgmp was already installed, it was not recognized. I installed the newer version 5.0.2

Re: [Haskell-cafe] Problems with libgmp on Amazon Linux

2012-01-07 Thread Nicu Ionita
Am 07.01.2012 20:01, schrieb Nabil Alsharif: Ahh your main issue is that --prefix should be /usr not /usr/lib It would be best to reinstall libgmp with the correct prefix. Oh, thanks, I will try this. ___ Haskell-Cafe mailing list

[Haskell-cafe] Problems with libgmp on Amazon Linux

2012-01-06 Thread Nicu Ionita
that a library is there. The error message - as it is - is meaningless, as the file exists and has read permissions for everybody. Thank you, Nicu [1] http://www.reddit.com/r/haskell/comments/o1u2g/deploying_a_haskell_app_to_amazon_ec2/ [2] https://aws.amazon.com/free/ [3] http

Re: [Haskell-cafe] Comparison Haskell, Java, C and LISP

2011-10-18 Thread Nicu Ionita
/haskell-cafe But is (delimited) continuation not a kind of reflection? Nicu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Much faster complex monad stack based on CPS state

2011-09-28 Thread Nicu Ionita
) where staticVal = staticVal0 materVal = materVal0 genEdges = genMoves ... genMoves :: CtxMon m = Int - Int - Bool - Game r m ([Move], [Move]) genMoves depth absdp pv = do Nicu (*) If so, were you using the strict version of State? Would it be possible to see the differences between

Re: [Haskell-cafe] Much faster complex monad stack based on CPS state

2011-09-28 Thread Nicu Ionita
with better performance. But then I did not follow it, and I want to concentrate on further improvements with the new code. The way is still long, because the top engines (written in C or C++) can do about 10 mil nps on my machine :-) Nicu ___ Haskell

[Haskell-cafe] Much faster complex monad stack based on CPS state

2011-09-26 Thread Nicu Ionita
not understand (yet) how to use it. Nicu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] SPECIALIZE in the presence of constraints

2011-09-25 Thread Nicu Ionita
specializations, the performance of the code is the same - so I doubt the specializations are used. Thanks, Nicu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Building Haskell Platform natively for 64bit Windows

2011-06-09 Thread Nicu Ionita
if there is a possibility to support 64 bit native codes without other stuff (calling conventions, win64 specific system calls etc). This could be perhaps a first step to full 64 bit support. But from the code of ghc I could not understand what this would mean. Nicu

Re: [Haskell-cafe] Building Haskell Platform natively for 64bit Windows

2011-06-07 Thread Nicu Ionita
Am 07.06.2011 19:37, schrieb Andrew Coppin: On 06/06/2011 09:34 PM, Nicu Ionita wrote: Hi, Just to double check: that means, today it's not possible to generate 64 bit operations under Windows, including bit level .., .|. a.s.o. (from Data.Bits), and this situation will stay like

Re: [Haskell-cafe] Building Haskell Platform natively for 64bit Windows

2011-06-06 Thread Nicu Ionita
. The bitboards are 64 bit wide and the basic operations are critical for speed, which is always critical in chess engines. Then it looks I'll have to implement these operations in C and use FFI to link them. Nicu ___ Haskell-Cafe mailing list Haskell

AW: [Haskell-cafe] ICFP contest

2009-06-23 Thread Nicu Ionita
any idea how to start. This year I'll try again (in Haskell, of course), but you're right, alone it can be very hard. Nicu Ionita -Ursprüngliche Nachricht- Von: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] Im Auftrag von Miguel Mitrofanov Gesendet

[Haskell-cafe] Basic problem in Haskell language design?

2009-03-01 Thread Nicu Ionita
). I think this is a basic problem with the language design. In small programs it's not so bad, but in large ones this could be. What do you think about it? Are there possible solutions or workarounds? Nicu Ionita ___ Haskell-Cafe mailing list Haskell

AW: [Haskell-cafe] Re: Basic problem in Haskell language design?

2009-03-01 Thread Nicu Ionita
Ok, thanks, compiling from Eclipse I totally forgot to check the compiler flags. Nicu Ionita -Ursprüngliche Nachricht- Von: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] Im Auftrag von Stuart Cook Gesendet: Sonntag, 1. März 2009 14:45 An: haskell-cafe

AW: [Haskell-cafe] Something like optimistic evaluation

2008-04-29 Thread Nicu Ionita
. Nicu -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Brent Yorgey Gesendet: Dienstag, 29. April 2008 16:42 An: Daniil Elovkov Cc: haskell-cafe@haskell.org Betreff: Re: [Haskell-cafe] Something like optimistic evaluation On Mon, Apr 28, 2008

[Haskell-cafe] Need help with Parsec

2008-01-20 Thread Nicu Ionita
-- Parse a text element parseText :: Parser Html parseText = do s - upTo return (stringToHtml s) ? some text -- For tests: pf p file = parseFromFile p file Nicu ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

[Haskell-cafe] ST Monad - what's wrong?

2007-12-09 Thread Nicu Ionita
of `($)', namely `getPrimes primes10h7.txt' In the expression: runST $ (getPrimes primes10h7.txt) In the definition of `primes': primes = runST $ (getPrimes primes10h7.txt) Compiled with GHC 6.6.1 with extensions activated. Nicu ___ Haskell-Cafe mailing list Haskell

[Haskell-cafe] AW: ST Monad - what's wrong?

2007-12-09 Thread Nicu Ionita
Ok, solved, the use of ($) was the problem. I changed it primes :: Set Integer primes = runST (getPrimes primes10h7.txt) and it compiles (and works too). Nicu -Ursprüngliche Nachricht- Von: Nicu Ionita [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 9. Dezember 2007 12:12

AW: [Haskell-cafe] Building MissingH on Windows - now problems with hslogger

2007-11-27 Thread Nicu
: case Map.lookup x lt of Left (_::String) - ... But beeing very late, I gave up after a few tries... Nicu -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Thomas Schilling Gesendet: Montag, 26. November 2007 21:42 An: haskell-cafe