In the excellent wreq Haskell library is easy to add one or more query parameters to a url just like so: opts = defaults & param "key" .~ ["value"]
but what I'm struggling to do is adding a list of parameters in one go, something like: params = [("key1", "value1"), ("key2", "value2"), ("key3", "value3")]
I know that there is function params
but I could not find any example on how to use it.
Aucun commentaire:
Enregistrer un commentaire