O      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None +,9;<=DQR]Replace all JSON content types with PrettyJSON. Kind-polymorphic so it can operate on kinds * and [*].PrettyJSON content type.&Prettify generated JSON documentation. docs ( ( ::  MyAPI)) None!"*+,569:;<=?DLQRT,WA datatype that represents everything that can happen at an endpoint, with its lenses:List of captures ()List of GET parameters ()=What the request body should look like, if any is requested ()5What the response should be if everything goes well ()You can tweak an  (like the default CK) with these lenses to transform an action and add some information to it.-A type to represent an HTTP response. Has an  status, a list of possible  MediaTypes, and a list of example  response bodies. Tweak A using the z, { and x lenses if you want.[If you want to respond with a non-empty response body, you'll most likely want to write a O instance for the type that'll be represented as encoded data in the response.!Can be tweaked with three lenses. (> defResponse Response {_respStatus = 200, _respTypes = [], _respBody = []} > defResponse & respStatus .~ 204 & respBody .~ [("If everything goes well", "{ \"status\": \"ok\" }")] Response {_respStatus = 204, _respTypes = [], _respBody = [("If everything goes well", "{ \"status\": \"ok\" }")]}Type of GET parameter:Normal corresponds to  QueryParam, i.e your usual GET parameterList corresponds to  QueryParams), i.e GET parameters with multiple valuesFlag corresponds to  QueryFlag , i.e a value-less GET parameterDocumentation options.Maximum samples allowed.TType of extra information that a user may wish to "union" with their documentation.mThese are intended to be built using extraInfo. Multiple ExtraInfo may be combined with the monoid instance.;A type to represent extra notes that may be attached to an .|This is intended to be used when writing your own HasDocs instances to add extra sections to your endpoint's documentation.#AA type to represent Authentication information about an endpoint.'IAn introductory paragraph for your documentation. You can pass these to .)Appears above the intro blob*Each String is a paragraph.+A type to represent a GET parameter from the Query String. Holds its name, the possible values (leave empty if there isn't a finite number of them), and a description of how it influences the output or behavior.Write a & instance for your GET parameter types1QA type to represent captures. Holds the name of the capture and a description.Write a ~" instance for your captured types.5\Our API documentation type, a product of top-level information and a good old hashmap from 9 to 9An 9 type that holds the m and the l.Gets used as the key in the 5 hashmap. Modify > or any 9 value you want using the m and l lenses to tweak. > > GET / > > & m  ["foo"] GET /foo > > & m  ["foo"] & l   POST /foo =Render a path as a -delimited string>An 9) whose path is `"/"` and whose method is GETHere's how you can modify it: > > GET / > > & m  ["foo"] GET /foo > > & m  ["foo"] & l   POST /foo ? An empty 5@Default documentation options.A4Default response: status code 200, no response body.Can be tweaked with two lenses. > defResponse Response {_respStatus = 200, _respBody = Nothing} > defResponse & respStatus .~ 204 & respBody .~ Just "[]" Response {_respStatus = 204, _respBody = Just "[]"}BQCombine two Actions, we can't make a monoid as merging Response breaks the laws.BAs such, we invent a non-commutative, left associative operation BV to mush two together taking the response, body and content types from the very left.D8Create an API that's comprised of a single endpoint. 5 is a (, so combine multiple endpoints with  or .|EThe class that helps us get documentation for authenticated endpoints~LThe class that helps us automatically get documentation for URL captures.Example of an instance: ninstance ToCapture (Capture "name" Text) where toCapture _ = DocCapture "name" "name of the person to greet"NThe class that helps us automatically get documentation for GET parameters.Example of an instance: instance ToParam (QueryParam "capital" Bool) where toParam _ = DocQueryParam "capital" ["true", "false"] "Get the greeting message in uppercase (true) or not (false). Default is false." for Generics. The use of Omega. allows for more productive sample generation.The class that lets us display a sample input or output in the supported content-types when generating documentation for endpoints that either:expect a request body, or return a non empty response bodyExample of an instance: O{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} import Data.Aeson import Data.Text import GHC.Generics data Greet = Greet { _msg :: Text } deriving (Generic, Show) instance FromJSON Greet instance ToJSON Greet instance ToSample Greet where toSamples _ = singleSample g where g = Greet "Hello, haskeller!"*You can also instantiate this class using  instead of G: it lets you specify different responses along with some context (as H) that explains when you're supposed to get the corresponding response.[The class that abstracts away the impact of API combinators on documentation generation.<Closed type family, check if endpoint is exactly within API.2Generate the docs for a given API that implements 3. This is the default way to create documentation.)docs == docsWithOptions defaultDocOptions2Generate the docs for a given API that implements . Create an 6 that is guaranteed to be within the given API layout.yThe safety here is to ensure that you only add custom documentation to an endpoint that actually exists within your API. hextra :: ExtraInfo TestApi extra = extraInfo (Proxy :: Proxy ("greet" :> Capture "greetid" Text :> Delete)) $ defAction & headers <>~ ["unicorns"] & notes <>~ [ DocNote "Title" ["This is some text"] , DocNote "Second secton" ["And some more"] ]GGenerate documentation given some extra introductions (in the form of DocInfo9) and some extra endpoint documentation (in the form of .The extra introductions will be prepended to the top of the documentation, before the specific endpoint documentation. The extra endpoint documentation will be "unioned" with the automatically generated endpoint documentation.IYou are expected to build up the ExtraInfo with the Monoid instance and .-If you only want to add an introduction, use .2Generate the docs for a given API that implements ) with with any number of introduction(s)2Sample input or output (if there is at least one). No samples."Single sample without description.Samples without documentation.,Default sample Generic-based inputs/outputs.JSynthesise a sample value of a type, encoded in the specified media types._Synthesise a list of sample values of a particular type, encoded in the specified media types.;Generate documentation in Markdown format for the given 5. "books" :>  "isbn" Text will appear as books:isbn in the docs.The generated docs for a  b just appends the docs for a with the docs for b.  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIghijklmnopqrstuvwxyz{|}~z  !"#$%&'()*+,-./0123456789:;<=>?@ABCDghijklmnopqrstuvwxyz{|}~9:;<I=>H5678G?1234+,-./0'()*#$%&F !"E@A BCDhgikjmlonsrqputwv{zyx~|}z   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIghijklmnopqrstuvwxyz{|}~NoneX !"'()*+,-./0123459>?@ACDijklmnopqrstuvwxz{~Y@i~9ml>5kj?1234on+,-./0rspq !"wv'()*utz{xACD       !""#$%%&'(()*+,--./001233456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'servant-docs-0.8-3CeLj165Avf9qzxO9qkttRServant.Docs.Internal.PrettyServant.Docs.Internal Servant.DocsPretty PrettyJSONpretty$fMimeRenderTYPEPrettyJSONa$fAcceptTYPEPrettyJSONAction _authInfo _captures_headers_params_notes _mxParams_rqtypes_rqbody _responseResponse _respStatus _respTypes _respBody _respHeaders ParamKindNormalListFlag DocOptions _maxSamples ExtraInfoDocNote _noteTitle _noteBodyDocAuthentication _authIntro_authDataRequiredDocIntro _introTitle _introBody DocQueryParam _paramName _paramValues _paramDesc _paramKind DocCapture _capSymbol_capDescAPI _apiIntros _apiEndpointsEndpoint_path_methodshowPath defEndpointemptyAPIdefaultDocOptions defResponse combineAction defActionsingle$fMonoidExtraInfo $fOrdDocIntro $fMonoidAPI$fHashableEndpoint$fShowEndpoint $fEqEndpoint $fOrdEndpoint$fGenericEndpoint$fEqDocCapture$fOrdDocCapture$fShowDocCapture $fEqDocIntro$fShowDocIntro$fEqDocAuthentication$fOrdDocAuthentication$fShowDocAuthentication $fEqDocNote $fOrdDocNote $fShowDocNote$fShowDocOptions $fEqParamKind$fOrdParamKind$fShowParamKind$fEqDocQueryParam$fOrdDocQueryParam$fShowDocQueryParam $fEqResponse $fOrdResponse$fShowResponse $fEqAction $fOrdAction $fShowAction$fEqAPI $fShowAPIauthDataRequired authIntro maxSamples apiEndpoints apiIntrosmethodpathcapDesc capSymbol paramDesc paramKind paramName paramValues introBody introTitlenoteBody noteTitlerespBody respHeaders respStatus respTypes ToAuthInfo toAuthInfo ToCapture toCaptureToParamtoParamAllHeaderSamplesallHeaderToSample GToSample gtoSamplesToSample toSamplesHasDocsdocsForIsInauthInfocapturesheadersmxParamsnotesparamsresponserqbodyrqtypesdocsdocsWithOptions extraInfodocsWithdocsWithIntrostoSample noSamples singleSamplesamplesdefaultSamplessampleByteStringsampleByteStringsmarkdown$fToSampleDual$fToSampleLast$fToSampleFirst$fToSampleProduct $fToSampleSum $fToSampleAny $fToSampleAll$fToSampleZipList$fToSampleConst $fToSample[]$fToSampleEither$fToSampleMaybe$fToSample(,,,,,,)$fToSample(,,,,,)$fToSample(,,,,)$fToSample(,,,)$fToSample(,,) $fToSample(,)$fToSampleOrdering$fToSampleBool$fToSampleNoContent$fHasDocsTYPE:>$fHasDocsTYPEWithNamedContext$fHasDocsTYPE:>0$fHasDocsTYPE:>1$fHasDocsTYPE:>2$fHasDocsTYPE:>3$fHasDocsTYPE:>4$fHasDocsTYPE:>5$fHasDocsTYPERaw$fHasDocsTYPE:>6$fHasDocsTYPE:>7$fHasDocsTYPE:>8$fHasDocsTYPE:>9$fHasDocsTYPEVerb$fHasDocsTYPEVerb0$fHasDocsTYPE:>10$fHasDocsTYPE:<|>$fAllHeaderSamples[]:$fAllHeaderSamples[][]$fGToSampleTYPEM1$fGToSampleTYPEK1$fGToSampleTYPE:+:$fGToSampleTYPE:*:$fGToSampleTYPEV1$fGToSampleTYPEU1base Data.ProxyProxyghc-prim GHC.TypesIntbytestring-0.10.8.1Data.ByteString.Lazy.Internal ByteString"lens-4.15.1-GIqMfFkWZyYIqq1QNYTt5ZControl.Lens.Setter<>~.~'http-types-0.9.1-BTSIP6lzG5DE6u136PaywsNetwork.HTTP.Types.Method methodPostGHC.Real/GHC.BaseMonoidmappend Data.Monoid<>#text-1.2.2.1-9Yh8rJoh8fO2JMLWffT3QsData.Text.InternalText$servant-0.8.1-LxVbOTaaeDv7FUTTa96r0NServant.API.CaptureCaptureServant.API.Alternative:<|>