Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fb-0.15.2 build failure (http-conduit/http-client?) #23

Open
clinty opened this issue Mar 3, 2014 · 3 comments
Open

fb-0.15.2 build failure (http-conduit/http-client?) #23

clinty opened this issue Mar 3, 2014 · 3 comments

Comments

@clinty
Copy link

clinty commented Mar 3, 2014

[ 3 of 16] Compiling Facebook.Base ( src/Facebook/Base.hs, dist-ghc/build/Facebook/Base.o )

src/Facebook/Base.hs:59:10:
Could not deduce (Data.Default.Default H.Request)
arising from a use of `def'
from the context (Monad m)
bound by the type signature for
fbreq :: Monad m =>
Text
-> Maybe (AccessToken anyKind)
-> HT.SimpleQuery
-> FacebookT anyAuth m H.Request
at src/Facebook/Base.hs:(49,10)-(53,38)
Possible fix:
add an instance declaration for (Data.Default.Default H.Request)
In the expression: def
In the expression:
def
{H.secure = True, H.host = host, H.port = 443,
H.path = TE.encodeUtf8 path, H.redirectCount = 3,
H.queryString = HT.renderSimpleQuery False
$ maybe id tsq mtoken query,
H.responseTimeout = Just 120000000}
In the expression:
let
host
= case tier of {
Production -> ...
Beta -> ... }
in
def
{H.secure = True, H.host = host, H.port = 443,
H.path = TE.encodeUtf8 path, H.redirectCount = 3,
H.queryString = HT.renderSimpleQuery False
$ maybe id tsq mtoken query,
H.responseTimeout = Just 120000000}

@meteficha
Copy link
Member

What versions of the dependencies are you using? I just did a build on a clean sandbox without any trouble.

Configuring asn1-types-0.2.3...
Configuring base16-bytestring-0.1.1.6...
Configuring base-unicode-symbols-0.2.2.4...
Configuring base64-bytestring-1.0.0.1...
Configuring byteable-0.1.1...
Downloading text-stream-decode-0.1.0.4...
Configuring cereal-0.4.0.1...
Configuring entropy-0.2.2.4...
Building base-unicode-symbols-0.2.2.4...
Building cereal-0.4.0.1...
Building base16-bytestring-0.1.1.6...
Building base64-bytestring-1.0.0.1...
Building byteable-0.1.1...
Building asn1-types-0.2.3...
Configuring failure-0.2.0.1...
Installed byteable-0.1.1
Configuring blaze-builder-0.3.3.2...
Installed base16-bytestring-0.1.1.6
Configuring hashable-1.2.1.0...
Installed base64-bytestring-1.0.0.1
Configuring mmorph-1.0.2...
Installed base-unicode-symbols-0.2.2.4
Configuring monad-loops-0.4.2...
Installed asn1-types-0.2.3
Downloading crypto-pubkey-types-0.4.2.2...
Building failure-0.2.0.1...
Building blaze-builder-0.3.3.2...
Configuring nats-0.1.2...
Installed failure-0.2.0.1
Building entropy-0.2.2.4...
Building hashable-1.2.1.0...
Building mmorph-1.0.2...
Building monad-loops-0.4.2...
Building nats-0.1.2...
Configuring stm-2.4.2...
Installed mmorph-1.0.2
Configuring tagged-0.7...
Installed monad-loops-0.4.2
Configuring transformers-base-0.4.1...
Installed entropy-0.2.2.4
Configuring zlib-bindings-0.1.1.3...
Installed nats-0.1.2
Configuring syb-0.4.1...
Installed hashable-1.2.1.0
Installed cereal-0.4.0.1
Building stm-2.4.2...
Configuring text-stream-decode-0.1.0.4...
Building tagged-0.7...
Building transformers-base-0.4.1...
Building zlib-bindings-0.1.1.3...
Configuring cryptohash-0.11.2...
Installed blaze-builder-0.3.3.2
Building syb-0.4.1...
Building text-stream-decode-0.1.0.4...
Installed transformers-base-0.4.1
Configuring securemem-0.1.3...
Configuring pem-0.2.1...
Installed stm-2.4.2
Building cryptohash-0.11.2...
Configuring asn1-encoding-0.8.1.3...
Installed tagged-0.7
Configuring crypto-pubkey-types-0.4.2.2...
Installed zlib-bindings-0.1.1.3
Building securemem-0.1.3...
Building pem-0.2.1...
Building asn1-encoding-0.8.1.3...
Configuring case-insensitive-1.1.0.3...
Installed syb-0.4.1
Building crypto-pubkey-types-0.4.2.2...
Configuring scientific-0.2.0.1...
Installed pem-0.2.1
Configuring unordered-containers-0.2.3.3...
Installed securemem-0.1.3
Building case-insensitive-1.1.0.3...
Installed text-stream-decode-0.1.0.4
Configuring publicsuffixlist-0.1...
Building scientific-0.2.0.1...
Building unordered-containers-0.2.3.3...
Building publicsuffixlist-0.1...
Configuring socks-0.5.4...
Installed case-insensitive-1.1.0.3
Installed asn1-encoding-0.8.1.3
Configuring cookie-0.4.0.1...
Building socks-0.5.4...
Configuring fast-logger-2.1.5...
Installed cryptohash-0.11.2
Building cookie-0.4.0.1...
Configuring monad-control-0.3.2.3...
Installed scientific-0.2.0.1
Configuring stm-chans-3.0.0...
Installed publicsuffixlist-0.1
Building fast-logger-2.1.5...
Building monad-control-0.3.2.3...
Installed crypto-pubkey-types-0.4.2.2
Configuring crypto-api-0.13...
Configuring crypto-cipher-types-0.0.9...
Installed cookie-0.4.0.1
Configuring crypto-random-0.0.7...
Installed fast-logger-2.1.5
Building crypto-api-0.13...
Building crypto-cipher-types-0.0.9...
Configuring http-types-0.8.3...
Installed monad-control-0.3.2.3
Installed socks-0.5.4
Configuring asn1-parse-0.8.1...
Building stm-chans-3.0.0...
Building crypto-random-0.0.7...
Building http-types-0.8.3...
Configuring attoparsec-0.11.1.0...
Installed unordered-containers-0.2.3.3
Building asn1-parse-0.8.1...
Configuring lifted-base-0.2.2.0...
Installed crypto-cipher-types-0.0.9
Building attoparsec-0.11.1.0...
Installed stm-chans-3.0.0
Configuring semigroups-0.12.2...
Configuring cipher-aes-0.2.6...
Installed asn1-parse-0.8.1
Downloading x509-1.4.10...
Configuring cipher-rc4-0.1.4...
Installed crypto-random-0.0.7
Building semigroups-0.12.2...
Configuring crypto-numbers-0.2.3...
Installed http-types-0.8.3
Building cipher-aes-0.2.6...
Building cipher-rc4-0.1.4...
Building crypto-numbers-0.2.3...
Building lifted-base-0.2.2.0...
Installed crypto-api-0.13
Configuring http-client-0.2.2.2...
Configuring x509-1.4.10...
Installed cipher-rc4-0.1.4
Building http-client-0.2.2.2...
Configuring cryptohash-cryptoapi-0.1.0...
Installed cipher-aes-0.2.6
Building x509-1.4.10...
Configuring cprng-aes-0.5.2...
Installed lifted-base-0.2.2.0
Installed crypto-numbers-0.2.3
Configuring resourcet-0.4.10...
Building cryptohash-cryptoapi-0.1.0...
Configuring crypto-pubkey-0.2.4...
Installed semigroups-0.12.2
Building cprng-aes-0.5.2...
Building resourcet-0.4.10...
Building crypto-pubkey-0.2.4...
Configuring void-0.6.1...
Installed cryptohash-cryptoapi-0.1.0
Installed cprng-aes-0.5.2
Installed x509-1.4.10
Configuring x509-store-1.4.4...
Building void-0.6.1...
Installed resourcet-0.4.10
Building x509-store-1.4.4...
Installed crypto-pubkey-0.2.4
Installed void-0.6.1
Downloading conduit-1.0.15.1...
Installed http-client-0.2.2.2
Installed x509-store-1.4.4
Configuring x509-system-1.4.2...
Configuring x509-validation-1.5.0...
Configuring conduit-1.0.15.1...
Building x509-validation-1.5.0...
Building x509-system-1.4.2...
Building conduit-1.0.15.1...
Installed x509-system-1.4.2
Installed x509-validation-1.5.0
Configuring tls-1.2.2...
Building tls-1.2.2...
Installed attoparsec-0.11.1.0
Configuring aeson-0.7.0.1...
Building aeson-0.7.0.1...
Installed conduit-1.0.15.1
Configuring attoparsec-conduit-1.0.1.2...
Configuring http-client-conduit-0.2.0.1...
Configuring monad-logger-0.3.4.0...
Building attoparsec-conduit-1.0.1.2...
Building http-client-conduit-0.2.0.1...
Building monad-logger-0.3.4.0...
Installed http-client-conduit-0.2.0.1
Installed attoparsec-conduit-1.0.1.2
Installed monad-logger-0.3.4.0
Installed tls-1.2.2
Configuring connection-0.2.0...
Building connection-0.2.0...
Installed connection-0.2.0
Configuring http-client-tls-0.2.1.1...
Building http-client-tls-0.2.1.1...
Installed http-client-tls-0.2.1.1
Configuring http-conduit-2.0.0.7...
Building http-conduit-2.0.0.7...
Installed http-conduit-2.0.0.7
Installed aeson-0.7.0.1
Configuring fb-0.15.2...
Building fb-0.15.2...
Installed fb-0.15.2

@clinty
Copy link
Author

clinty commented Mar 4, 2014

I think the relevant version is data-default-0.5.1; patching it to use data-default-class and data-default-instances-base instead helped.

@clinty clinty closed this as completed Mar 4, 2014
@clinty clinty reopened this Mar 4, 2014
@meteficha
Copy link
Member

Actually, looking closer to your issue it seems like a problem of broken dependencies. Does cabal configure warn you? Can you reproduce this bug with a clean sandbox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants