<p dir="ltr">Hello,</p>
<p dir="ltr">Querystring parameters are optional. The corresponding handler argument is automatically a Maybe, because one can reach this endpoint while not specifying a value for that param.</p>
<p dir="ltr">I understand the operator naming scheme can be a bit odd when you're not used to it, we'll see what suits people the most after we get more feedback on that :)</p>
<div class="gmail_quote">Le 10 déc. 2014 00:18, "Wojtek Narczyński" <<a href="mailto:wojtek@power.com.pl">wojtek@power.com.pl</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Interesting, thank you!<br>
<br>
Can your library handle optional parameters? I guess, not right now but can be done, right?<br>
<br>
At first glance I thought the :> operator had something to do with subtyping.How about defining the operators somehow like this:<br>
<br>
type UserAPI = "users" </> "search" <?> QueryParam "q" Text <,> QueryParam "n" Word64 ::: Get [User]<br>
<br>
In addition to more visual resemblance to http, you could probably enforce more type safety this way, too.<br>
<br>
<br>
-- <br>
Kind regards,<br>
Wojtek Narczynski<br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>