Closed nlander closed 7 years ago
What servant-purescript version are you using?
@nlander Could you use text instead of images? It would help visually impaired people.
I am using the version that comes with stackage lts 7.19, which is 0.3.1.5
@legrostdg here is the third compile error in text form: Error found: in module ServerAPI at /home/nlander/clearnexus-chrome-extension/src/Client/ServerAPI.purs line 28, column 1 - line 45, column 31
Could not match type
Error
with type
AjaxError
while solving type class constraint
Control.Monad.Error.Class.MonadError AjaxError
(Aff t3)
while checking that expression \email ->
\access_token ->
(bind ask) (\$2 ->
...
)
has type forall eff m.
( MonadReader (SPSettings_ SPParams_) m
, MonadError Error m
, MonadAff
( ajax :: AJAX
| eff
)
m
) => UriEmail -> Token -> m EmailProperties
while applying a function (bind (#dict Bind t0)) (ask (#dict MonadAsk t3 t4))
of type (t0 -> t1 t2) -> t1 t2
to argument \$2 ->
case $2 of
spOpts_' -> let
...
in ...
in value declaration getApiEmailByEmail
where t1 is an unknown type
t2 is an unknown type
t0 is an unknown type
t3 is an unknown type`
@nlander "man github-markdown-syntax". You can prefix everything with 4 spaces, to have a nice looking code block.
update your version of servant-purescript
, 0.3.1.5 is outdated.
I updated to servant-purescript-0.6.0.0 and everything built fine. Thanks!
I am trying to compile the generated code with
pulp build
and so far I have gotten three compile errors. That error was easy to fix: The second error was: It was also easy to fix: The third error I got has me and my coworkers a bit stumped: Any help understanding what is going on here would be appreciated.