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
In Servant the QueryParam adds its parameter as a Maybe type because query parameters and headers are optional. However, it seems like the vanilla JS generated code always appends the parameters even if undefined.
I think it's a good idea if the generated JS checks for undefined query parameters and headers and appropriately omits them from the URL.
The text was updated successfully, but these errors were encountered:
It's probably a good idea to still send null values though, because we may want to tell the difference between null and undefined, in other words I might parse null as Just Nothing :: Maybe (Maybe a) to distinguish the two.
In Servant the
QueryParam
adds its parameter as aMaybe
type because query parameters and headers are optional. However, it seems like the vanilla JS generated code always appends the parameters even if undefined.I think it's a good idea if the generated JS checks for undefined query parameters and headers and appropriately omits them from the URL.
The text was updated successfully, but these errors were encountered: