You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
magicbane: BuildFailureException Process exited with ExitFailure 1: ./Setup build
[6 of 9] Compiling Magicbane.HTTPClient ( library/Magicbane/HTTPClient.hs, dist/
build/Magicbane/HTTPClient.o )
library/Magicbane/HTTPClient.hs:69:25: error:
• Could not deduce (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnlif
tIO
μ)
arising from a use of ‘HCC.withResponse’
from the context: (MonadHTTP ψ μ, MonadCatch μ)
bound by the type signature for:
performWithFn :: forall ψ (μ :: * -> *) ι ρ.
(MonadHTTP ψ μ, MonadCatch μ) =>
(ConduitM ι ByteString μ () -> μ ρ)
-> Request -> ExceptT Text μ (Response ρ)
at library/Magicbane/HTTPClient.hs:67:1-122
Possible fix:
add (unliftio-core-0.1.1.0:Control.Monad.IO.Unlift.MonadUnliftIO
μ) to the context of
the type signature for:
performWithFn :: forall ψ (μ :: * -> *) ι ρ.
(MonadHTTP ψ μ, MonadCatch μ) =>
(ConduitM ι ByteString μ () -> μ ρ)
-> Request -> ExceptT Text μ (Response ρ)
• In the expression: HCC.withResponse req
In the second argument of ‘($)’, namely
‘HCC.withResponse req
$ \ res
-> do body <- fn $ responseBody res
return res {responseBody = body}’
In the second argument of ‘($)’, namely
‘tryAny
$ HCC.withResponse req
$ \ res
-> do body <- fn $ responseBody res
return res {responseBody = body}’
|
69 | res ← lift $ tryAny $ HCC.withResponse req $ \res → do
| ^^^^^^^^^^^^^^^^^^^^
I was able to reproduce locally like so:
stack unpack magicbane-0.2.0 &&cd magicbane-0.2.0
edit stack.yaml # add the following stack.yaml
stack build
As seen on the Stackage build server:
I was able to reproduce locally like so:
The text was updated successfully, but these errors were encountered: