-
Notifications
You must be signed in to change notification settings - Fork 21
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
Comments
What versions of the dependencies are you using? I just did a build on a clean sandbox without any trouble.
|
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. |
Actually, looking closer to your issue it seems like a problem of broken dependencies. Does |
[ 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}
The text was updated successfully, but these errors were encountered: