Ticket #6128 (closed bug: invalid)
ghc 7.4.2 does not work with LDAP-0.6.6
Sample code as below. When I ghci/runhaskell/ghc (compile) it with ghc 7.2.2. Everything is fine. But when I use ghc 7.4.1, only ghci/runhaskell works. ghc compiled (without any extra parameters) binary always failed at the second ldap operation with message: LDAP error: ldapSimpleBind: LDAPException LdapServerDown?(-1): Can't contact LDAP server. I am sure there is nothing wrong with the network, the client library, or the server/service. Trying to capture the network package, it seemed that the program did not open a network connection at all.
ldap <- ldapInit domain ldapPort ldapSimpleBind ldap bindDN bindPW