Re: Forall and type synonyms in GHC 7.0

2010-10-31 Thread Bas van Dijk
On Mon, Nov 1, 2010 at 4:30 AM, Mario Blažević wrote: >     Before uploading a new version of my project on Hackage, I decided to > future-proof it against GHC 7.0. I ran into several compile errors caused by > the changes in let generalization, but these were easy to fix by adding > extra type an

Re: [Haskell-cafe] Equivalent of withForeignPtr for System.Mem.Weak?

2010-10-31 Thread Antoine Latter
On Sun, Oct 31, 2010 at 10:14 PM, Matthew Steele wrote: > I have an object to which I have added one or more finalizers via > addFinalizer from System.Mem.Weak.  I would like to have a function that > allows me to make use of the object within a block of IO code, and guarantee > that the finalizer

Forall and type synonyms in GHC 7.0

2010-10-31 Thread Mario Blažević
Before uploading a new version of my project on Hackage, I decided to future-proof it against GHC 7.0. I ran into several compile errors caused by the changes in let generalization, but these were easy to fix by adding extra type annotations. But then I ran into another problem that I can't fix

Re: Type error in GHC-7 but not in GHC-6.12.3

2010-10-31 Thread Bas van Dijk
(resending this to the list because this failed yesterday because of the mailinglist downtime) On Sat, Oct 30, 2010 at 1:57 AM, Bas van Dijk wrote: > I could isolate it a bit more if you want. And so I did. The following is another instance of the problem I'm having but set in a more familiar se

Re: network programming with GHC 7

2010-10-31 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/28/10 05:16 , Kazu Yamamoto (山本和彦) wrote: > When I compiled a network server with GHC 7 without the "-threaded" > option and ran it, I got the following error. > > file descriptor 5496824 out of range for select (0--1024). I would be extr

Re: ANNOUNCE: GHC 7.0.1 Release Candidate 2

2010-10-31 Thread Isaac Dupree
On 10/30/10 04:43, Bas van Dijk wrote: Which is to be expected because the Prelude is imported implicitly. No it's not, because you import Prelude explicitly ("import Prelude ( fromInteger )"). In any Haskell, Prelude is only implicitly imported if there are no explicit imports of Prelude

Re: Fixing LDAP lib compilation on OpenBSD

2010-10-31 Thread Julien Dessaux
Sry guys, it seems that the ml bot messed up with my mail. Here is my original request : On Sat, Oct 30, 2010 at 7:28 PM, Julien Dessaux wrote: > Hi GHC folks, > > I'm using the LDAP lib for one of my projects and I found a problem > while building it on an OpenBSD system. It wouldn't compil