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
The comment is removed and the API response successfully returned according to deleteCommentR's type as:
Right ()
Actual
The comment is removed, but the result is an error in Left:
Left (ParseError "Error in $: not enough input")
Hypothesis
The commonly-used Request synonym fixes to MtJSON, but an endpoint such as this returns 204 No Content, so trying to parse no content to () fails. I'm guessing such an endpoint function needs to use MtUnit.
The text was updated successfully, but these errors were encountered:
Repro
Save to
./gh-repro.hs
Expected
The comment is removed and the API response successfully returned according to
deleteCommentR
's type as:Actual
The comment is removed, but the result is an error in
Left
:Left (ParseError "Error in $: not enough input")
Hypothesis
The commonly-used
Request
synonym fixes toMtJSON
, but an endpoint such as this returns204 No Content
, so trying to parse no content to()
fails. I'm guessing such an endpoint function needs to useMtUnit
.The text was updated successfully, but these errors were encountered: