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.
Code:
ldap <- ldapInit domain ldapPort
ldapSimpleBind ldap bindDN bindPW
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.4.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |
Edited by magicloud