Closed menelaos closed 5 years ago
Yikes, well spotted. Untyped unsafeCoerce
strikes again!
Ah, this does only arise if the dependency versions are overridden right now, at least.
Yes, sorry, I should have mentioned that I was using affjax
v9.0.0 and form-urlencoded
v5.0.0. They were in the same package set, but I see that you took care of that, too :-) Thanks!
I'll get an update out this weekend, just ran out of time last night 🙂
A fairly recent commit in
purescript-form-urlencoded
changed the type signature of theencode
function from... -> String
to... -> Maybe String
. This trips up theextractContent
function inpurescript-affjax
. Due to the use ofunsafeToForeign
, the compiler won't notice.The sanitization of the
FormURLEncoded
data could probably also be done inpurescript-form-urlencoded
(smart constructors or similar) but, either way, I guess the user should be prevented from sending ill-formed requests. Thanks for reading!