>2      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None*+,/9:;<=DIQRT"a static path segment. like "/foo"a capture. like "/:userid"WUtility class used by ho which computes the data needed to generate a function for each endpoint and hands it all back in a list.__ maps Haskell types with types in the target language of your backend. For example, let's say you're implementing a backend to some language XU, and you want a Text representation of each input/output type mentioned in the API: -- First you need to create a dummy type to parametrize your -- instances. data LangX -- Otherwise you define instances for the types you need instance HasForeignType LangX Text Int where typeFor _ _ _ = "intX" -- Or for example in case of lists instance HasForeignType LangX Text a => HasForeignType LangX Text [a] where typeFor lang type _ = "listX of " <> typeFor lang ftype (Proxy :: Proxy a)lFinally to generate list of information about all the endpoints for an API you create a function of a form: getEndpoints :: (HasForeign LangX Text api, GenerateList Text (Foreign Text api)) => Proxy api -> [Req Text] getEndpoints api = listFromAPI (Proxy :: Proxy LangX) (Proxy :: Proxy Text) api |-- If language __X__ is dynamically typed then you can use -- a predefined NoTypes parameter with the NoContent output type: getEndpoints :: (HasForeign NoTypes NoContent api, GenerateList Text (Foreign NoContent api)) => Proxy api -> [Req NoContent] getEndpoints api = listFromAPI (Proxy :: Proxy NoTypes) (Proxy :: Proxy NoContent) api h8Generate the necessary data for codegen as a list, each K/ describing one endpoint from your API type.g  !$%&'()*+./01234789:;<=@ABCDEFGHKLMNOPQRSTWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}R  !$'%&()*+./01234789:;<=@ABCDEFGHKLMNOPQRSTWXYZ[\]^_`abcdefghh ! )*+($%&'432./01=<789::;A@GFBCDEHTSKLMNOPQRfedcbag_`^}[\]|YZ{zyxwvutsrqponmlWXkjihC  !$%&'()*+./01234789::;<=@ABCDEFGHKLMNOPQRSTWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}None*+,/9:;<=DIQRT;Function name builder that simply concat each part togetherpFunction name builder using the snake_case convention. each part is separated by a single underscore character.eFunction name builder using the CamelCase convention. each part begins with an upper case character.~~~~None*+,/9:;<=DIQRT !$'%&(*+./01234789:;<=@BCDEFGKLMNOPQRSTWX[\]^_`abcdefgh~M$%&'789::;./01KLMNOPQRBCDE(fdcaebST<=@FG !234[\]_`WX^+*gh       !"#$%&'()*+,-../01234566789:;<=>?@@ABCDEFGHHIJKLMNOPQRSTUUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~   ,servant-foreign-0.10.1-QJs82My0Ls2qgj2iE5u5yServant.Foreign.InternalServant.Foreign.InflectionsServant.Foreign FunctionNameunFunctionName$fShowFunctionName$fEqFunctionName$fMonoidFunctionName PathSegment unPathSegment _FunctionName$fShowPathSegment$fEqPathSegment$fIsStringPathSegment$fMonoidPathSegmentArg_argName_argType _PathSegment $fShowArg$fEqArg SegmentTypeStaticCapargNameargTypeargPath$fShowSegmentType$fEqSegmentTypeSegment unSegment_Static_Cap $fShowSegment $fEqSegmentArgTypeNormalFlagListPath_Segment isCapture captureArg $fEqArgType $fShowArgTypeQueryArg _queryArgName _queryArgType_Normal_Flag_List$fShowQueryArg $fEqQueryArg HeaderArgReplaceHeaderArg _headerArg_headerPattern queryArgName queryArgType$fShowHeaderArg $fEqHeaderArg headerArg headerPatternUrl_path _queryStr _HeaderArg_ReplaceHeaderArgdefUrl $fShowUrl$fEqUrlReq_reqUrl _reqMethod _reqHeaders_reqBody_reqReturnType _reqFuncNamepathqueryStr $fShowReq$fEqReq GenerateList generateListEmptyForeignAPI HasForeignForeign foreignForNoTypesHasForeignTypetypeForreqBody reqFuncName reqHeaders reqMethod reqReturnTypereqUrldefReq listFromAPI$fGenerateListftype:<|>$fGenerateListftypeReq"$fGenerateListftypeEmptyForeignAPI$fHasForeignklangftype:>&$fHasForeignklangftypeWithNamedContext$fHasForeignklangftype:>0$fHasForeignklangftype:>1$fHasForeignklangftype:>2$fHasForeignklangftype:>3$fHasForeignklangftype:>4$fHasForeignklangftypeRaw$fHasForeignklangftype:>5$fHasForeignklangftype:>6$fHasForeignklangftype:>7$fHasForeignklangftype:>8$fHasForeignklangftypeVerb$fHasForeignklangftype:>9$fHasForeignklangftype:>10$fHasForeignklangftypeEmptyAPI$fHasForeignklangftype:<|>*$fHasForeignTypekTYPENoTypesNoContentftype concatCaseL concatCase snakeCaseL snakeCase camelCaseL camelCase,http-api-data-0.3.7.1-6bj6dcwYXjxAwVo3ps5GvoWeb.Internal.HttpApiData ToHttpApiData toUrlPiecetoEncodedUrlPiecetoHeader toQueryParamFromHttpApiData parseUrlPiece parseHeaderparseQueryParam'http-types-0.9.1-COjhQ2iwg3pLVlHRwFMXJXNetwork.HTTP.Types.Method StdMethodGETPOSTHEADPUTDELETETRACECONNECTOPTIONSPATCHNetwork.HTTP.Types.Version HttpVersion httpMajor httpMinor*network-uri-2.6.1.0-Aihq3wpSNKN28NNLADc6qL Network.URIURI uriScheme uriAuthorityuriPathuriQuery uriFragment#servant-0.11-77qE8VReKz19IILdnZSmUwServant.Utils.LinkssafeLinkLinkHasLinkMkLinktoLinkServant.API.TypeLevelIsElem'IsElemServant.API.Alternative:<|>Servant.API.BasicAuth BasicAuth BasicAuthDatabasicAuthUsernamebasicAuthPasswordServant.API.CaptureCapture CaptureAllServant.API.ContentTypesJSON PlainTextFormUrlEncoded OctetStreamAccept contentType contentTypes MimeRender mimeRender MimeUnrender mimeUnrendermimeUnrenderWithType NoContentServant.API.EmptyEmptyAPIServant.API.Experimental.Auth AuthProtectServant.API.ResponseHeadersnoHeader addHeaderHeaders getResponsegetHeadersHListHListHNilHConsBuildHeadersTobuildHeadersTo GetHeaders getHeaders AddHeaderServant.API.HeaderHeader MissingHeaderUndecodableHeaderServant.API.IsSecureIsSecureSecure NotSecureServant.API.QueryParam QueryParam QueryParams QueryFlagServant.API.RawRawServant.API.RemoteHost RemoteHostServant.API.ReqBodyReqBodyServant.API.Sub:>Servant.API.VerbsVerbGetPostPutDeletePatch PostCreated GetAccepted PostAcceptedDeleteAccepted PatchAccepted PutAcceptedGetNonAuthoritativePostNonAuthoritativeDeleteNonAuthoritativePatchNonAuthoritativePutNonAuthoritative GetNoContent PostNoContentDeleteNoContentPatchNoContent PutNoContentGetResetContentPostResetContentGetPartialContent ReflectMethod reflectMethodServant.API.WithNamedContextWithNamedContext$vault-0.3.0.7-Cz57nI981xoBd5qPAygoFPData.Vault.LazyVault