[Haskell-cafe] Gtk2Hs + Sourceview on Windows

2009-05-19 Thread mwinter
Hi, I have ghc 6.10.1 and gtk2hs 0.10.0 installed on my windows vista computer. Both were installed using the installer on the webpages. I am able to use gtk, glade etc but not sourceview or cairo. If I compile the examples in the gtk2hs example folder, I get "not in scope" error messages for fun

Re: [Haskell-cafe] Parsec - Custom Fail

2009-05-05 Thread mwinter
Thanks, but I want a nice solution not another, even more complicated, workaround. On 5 May 2009 at 17:10, Martijn van Steenbergen wrote: > mwin...@brocku.ca wrote: > > Hi, > > > > I am using parsec to parse a small programming language. The language is > > typed and > > I need to do some type

[Haskell-cafe] Parsec - Custom Fail

2009-05-05 Thread mwinter
Hi, I am using parsec to parse a small programming language. The language is typed and I need to do some type checking, too. I have decided to do the parsing and type checking simultaneously in the my parsec parser. This approach avoids to keep source code positions in the data type in order to

Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread mwinter
I am using GHC 6.8.3. The -O2 option made both runs faster but the 2 core run is still much slower that the 1 core version. Will switching to 6.10 make the difference? On 3 Mar 2009 at 18:46, Svein Ove Aas wrote: > On Tue, Mar 3, 2009 at 6:41 PM, Don Stewart wrote: > > allbery: > >> On 2009 Mar

Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread mwinter
It gets a bit faster in general but the problem remains. I have two threads in both runs, once I use 1 core and then 2 cores. The second run is much slower. On 3 Mar 2009 at 17:32, Sebastian Sylvan wrote: > > > > On Tue, Mar 3, 2009 at 5:31 PM, wrote: > In both runs the same computations

Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread mwinter
In both runs the same computations are done (sequentially resp. parallel), so the gc should be the same. But still using 2 cores is much slower than using 1 core (same program - no communication). On 3 Mar 2009 at 20:21, Bulat Ziganshin wrote: > Hello mwinter, > > Tuesday, March 3, 2

[Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread mwinter
Hi, I tried a get into concurrent Haskell using multiple cores. The program below creates 2 task in different threads, executes them, synchronizes the threads using MVar () and calculates the time needed. import System.CPUTime import Control.Concurrent import Control.Concurrent.MVar myTask1 =