Re: Strange performance effects with unsafePerformIO

2011-03-24 Thread Thomas Schilling
unsafePerformIO traverses the stack to perform blackholing. It could be that your code uses a deep stack and unsafePerformIO is repeatedly traversing it. Just a guess, though. 2011/3/24 Björn Peemöller : > Hello, > > we have a strange performance behaviour when we use unsafePerformIO, at > least

Re: Issue with SrcSpan of AbsBinds

2011-03-24 Thread Ian Lynagh
Hi JP, On Fri, Mar 18, 2011 at 02:51:36PM +0100, JP Moresmau wrote: > > And the TypecheckedSource gives me something like (using the > ghc-syb-utils package to dump it:) Can you file a ticket with complete reproduction instructions please? Thanks Ian

Strange performance effects with unsafePerformIO

2011-03-24 Thread Björn Peemöller
Hello, we have a strange performance behaviour when we use unsafePerformIO, at least with GHC 6.12.3 and 7.0.1. Please consider the example program following at the end of this post. Running the original code the execution time is about 26 seconds, while uncommenting one (or both) of the comments

RE: Class constraints for associated type synonyms

2011-03-24 Thread Simon Peyton-Jones
| class Monoid (GeneratorOf a) => Generable a where | type GeneratorOf a :: * -> * | construct :: GeneratorOf a -> a | | Now, it seems I need FlexibleInstances to do this when I'm using an | associated type synonym, but I don't need the flexibility when using a | multiparameter type class.

Re: 7.0.3

2011-03-24 Thread Luca Ciciriello
Waiting for the fixed 7.0.3, is there some workaround to make available the compilation on MacOS X with Xcode4 using HP 2011.2.0.0? Thanks. Luca. Luca On Mar 17, 2011, at 3:30 PM, Aaron Culich wrote: > Byron- The the latest available version is of OpenGL is 2.4.0.1 so do a cabal > update to g