One of the biggest advantages of servant-like API descriptions is the autogeneration of a type-safe and compliant client. Essentially, a function
client :: forall (a :: Api Nat Symbol *) . Sing a -> LocationData -> Client a
where Client a is a collection of IO actions which result in calls to the API hosted at LocationData.
One of the biggest advantages of
servant-like API descriptions is the autogeneration of a type-safe and compliant client. Essentially, a functionwhere
Client ais a collection ofIOactions which result in calls to the API hosted atLocationData.