[Haskell-cafe] [ANN] servant 0.2 - trying to rethink webservices and APIs
Wojtek Narczyński
wojtek at power.com.pl
Tue Dec 9 23:18:04 UTC 2014
Hello,
Interesting, thank you!
Can your library handle optional parameters? I guess, not right now but
can be done, right?
At first glance I thought the :> operator had something to do with
subtyping.How about defining the operators somehow like this:
type UserAPI = "users" </> "search" <?> QueryParam "q" Text <,>
QueryParam "n" Word64 ::: Get [User]
In addition to more visual resemblance to http, you could probably
enforce more type safety this way, too.
--
Kind regards,
Wojtek Narczynski
More information about the Haskell-Cafe
mailing list