[Haskell-cafe] What is the difference between runhaskell and compile?

Chris Dornan chris at chrisdornan.com
Fri May 25 10:43:55 CEST 2012

I have been using LDAP with GHC without a problem – I get this error often but the problems have been with the configuration of the OpenLDAP client library or the OpenLDAP server. 
We are all taking about LDAP-0.6.6? Which version of GHC are we talking about? (I don’t think I have tested this on GHC-7.4.1, and maybe the others haven’t either.)
From: haskell-cafe-bounces at haskell.org [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Brandon Allbery
Sent: 25 May 2012 04:21
To: Magicloud Magiclouds
Cc: Haskell-Cafe
Subject: Re: [Haskell-cafe] What is the difference between runhaskell and compile?
On Thu, May 24, 2012 at 11:05 PM, Magicloud Magiclouds <magicloud.magiclouds at gmail.com> wrote:
Hi there,
 The code could not be simpler. Just ldapInit, ldapSimpleBind.
 I just found that the code works with ghci, too. So to sum up,
ghci/runhaskell works, ghc not.
A possibility that occurs to me:  does it by any chance work with ghc -threaded?  Perhaps the issue relates to the different behavior of the threaded runtime (which is used automatically by ghci/runghc).
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120525/5e9e5e41/attachment-0001.htm>

More information about the Haskell-Cafe mailing list