с      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ None Safe-InferredNone !"*+<=KM !Wrap your custom error type in a a. This requires the ToResponseCode dictionary to pick a response code when the error is served. &        None!"*3JK The  datatype containing sub-dictionaries for translation of identifiers (i), headers (h), parameters (p), inputs (i), outputs (o), and errors (e). Inputs, outputs and errors can have multiple associated dictionaries.The explicit dictionary I describes how to translate some Haskell error value to a response body.The explicit dictionary  describes how to translate some Haskell value to a response body. We currently use a constructor for every combination of input type to output type.The explicit dictionary ' describes how to translate the request body into some Haskell value. We currently use a constructor for every combination of input type to output type. For example, we can use XML input in multiple ways, parsed, as plain/text or as raw bytes, depending on the needs of the backend resource."The explicit dictionary  Parameterb describes how to translate the request parameters to some Haskell value. The first field in the & constructor is a white list of paramters we can recognize, used in generic validation and for generating documentation. The second field is a custom parser that can fail with a [ or can produce a some value. When explicitly not interested in the parameters we can use %.&The explicit dictionary &` describes how to translate HTTP request headers to some Haskell value. The first field in the & constructor is a white list of headers we can recognize, used in generic validation and for generating documentation. The second field is a custom parser that can fail with a X or can produce a some value. When explicitly not interested in the headers we can use ).*The explicit dictionary *x describes how to translate a resource identifier (originating from a request URI) to a Haskell value. We allow plain  . identifiers or all Haskell types that have a ! instance.-The -E datatype enumerates all input and output formats we might recognize.5)Type synonym for dictionary modification.6;Custom existential packing an error together with a Reason.=+The empty dictionary, recognizing no types.8"  !"#$%&'()*+,-./01234#$56789:;<=5  !"#$%&'()*+,-./0123456789:;<=5-3210/.89:;<=5*,+&)('"%$#!  4 67"  ! "%$#&)('*,+-3210/.4#$56789:;<=None>2Set custom sub-dictionary for recognizing headers.?2Add custom sub-dictionary for recognizing headers.@5Set custom sub-dictionary for recognizing parameters.A5Add custom sub-dictionary for recognizing parameters.B:Open up input type for extension with custom dictionaries.C"Allow direct usage of as input as  .D*Allow direct usage of as input as raw Xml %.E8Allow usage of input as file contents, represented as a &.F,The input can be read into some instance of !D. For inspection reasons the type must also be an instance of both  and '.G,The input can be read into some instance of (.H The input can be used as an XML &.I,The input can be read into some instance of Json.J;Open up output type for extension with custom dictionaries.KAllow output as plain String.LFAllow file output using a combination of the raw data and a mime type.MAllow output as XML using the ( type class.N)Allow output as raw XML represented as a &.OAllow output as JSON using the Json type class.PtAllow output as multipart. Writes out the ByteStrings separated by boundaries, with content type 'multipart/mixed'.Q:Open up error type for extension with custom dictionaries.R%Allow error output as JSON using the Json type class.S$Allow error output as XML using the ( type class.T1The input can be read into some instance of both Json and (.UAllow output as JSON using the Json/ type class and allow output as XML using the ( type class.V%Allow error output as JSON using the Json/ type class and allow output as XML using the ( type class.W1The input can be read into some instance of both Json and (% and allow output as JSON using the Json/ type class and allow output as XML using the ( type class.>?@ABCDEFGHIJKLMNOPQRSTUVW>?@ABCDEFGHIJKLMNOPQRSTUVWBCDEFGHIJKLMNOPQRSTUVW>?@A>?@ABCDEFGHIJKLMNOPQRSTUVWNoneO  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWNone !"+24<=KM XYZ[\)*]^+,-./01XYZ[\]^XYZ[\]^ XYZ[\)*]^None!"+=EK_A ` returning a list of items.`A ` returning a single item.aApply a Functor f to a type a. In general will result in f a , except if f is 2#, in which case it will result in a. This prevents a lot of 2 wrapping/unwrapping.bNA handler for some endpoint. The input and output types are specified by the d3, which can be created using the combinators from Rest.Dictionary.Combinators>. The inputs (headers, parameters and body) are passed as an g to the e. This handler runs in monad m, combined with the ability to throw errors. The result is either the output value, or a list of them for list handlers. If the f flag is set, this suggests to clients that the resource should only be served over https. It has no effect when running the API.gMAn environment of inputs passed to a handler. Contains information from the is, the jeters and the body k.l Construct a b using a 5 instead of a . The f flag will be 3.mSet f to 4.nJSmart constructor for creating a list handler. Restricts the type of the  dictionary to  oDictionary for taking + parameters. Allows two query parameters, offset and count[. If not passed, the defaults are 0 and 100. The maximum range that can be passed is 1000.pTCreate a list handler that accepts ordering information. Restricts the type of the  dictionary to  qWDictionary for taking ordering information. In addition to the parameters accepted by o, this accepts order and  direction.rOCreate a handler for a single resource. Takes the entire environmend as input.sRCreate a handler for a single resource. Takes only the body information as input.t?Create a handler for a single resource. Doesn't take any input.uoCreate a handler for a single resource. Take body information and the resource identifier as input. The monad m must be a 5#-like type containing the idenfier._`abcdefghijklmnopqrstu67_`abcdefghijklmnopqrsturstunpoqghijkbcdefla`_m_`abcdefghijklmnopqrstu67None:HMvwxy 89:;<vwxyxvwyvwxyNone!"HMz{|}~z{|}~z{|}~z{|}~NoneB=>?@ABC =>?@ABC None:M@A named endpoint: an static action, a single item of many items.An identification of an item in a resource. It contains a dictionary describing how to identify the resource, and a function for this identification type to an id.A  can either be a . (there is only one) or it can be identified  an  entifier.GSpecifies if we're identifying a single resource, or many (a listing).LA step in the routing of a resource. A part of the uri either identifies a  resource, or an 3 resource. Named resources can be static actions (D%) or one or many singletons or by's.A j describes how (part of the) route to a resource looks, and returns an identifier for a single resource (sid), many resources (mid) or a static action (aid). The first argument specifies the top level resource (no path segments). The second specifies a what happens at the first step in the path."A schema with a top level listing.#A schema with no top level listing.+A schema with a singleton at the top level.A list of named endpoints..A top level action endpoint for this resource.A singleton resource endpoint.4A single resource endpoint with a string identifier.?A single resource endpoint with an identifier that can be read.E1A single resource identified as specified by the *.A listing endpoint.,A listing endpoint with a string identifier..A listing with an identifier that can be read.F)A listing identified as specified by the *.4An unnamed single resource with a string identifier.?An unnamed single resource with an identifier that can be read.G;An unnamed single resource identified as specified by the *.,An unnamed listing with a string identifier.7An unnamed listing with an identifier that can be read.H2An unnamed listing identified as specified by the *.!EFGHEFGH None !"2346=HMThe p type is used as the identifier for resources that can't be routed to. It contains no values apart from bottom.The P data type represents a single resource in a REST API. Handlers run in a monad m+, while things below this resource run in s. The identifiers sid, mid and aid2 identify a single item, a listing and an action.>The name for this resource, used as a path segment in routing.6A description of the resource, used for documentation.*The schema for routing and identification.;Private resources are not documented, but they are exposed.%How to run a subresource given an id.0List handler, both toplevel and deeper (search).Static actions, e.g. signin.'Get a single resource identified by id.*Update a single resource identified by id.*Delete a single resource identified by id..Create a single resource, generating a new id.'Actions performed on a single resource. Properties of a single resource."Create an empty resource given an Y function. It has no name, so if you wish to route to this resource, you should set one.IMake a resource that doesn't add any information for subresources (i.e.  is set to I).RMake a resource that provides the single resource identifier to its subresources.xMake a resource that provides the single resource identifier to its subresources, by giving a conversion function to a J. If s is a newtype around J7, for example, the function should unwrap the newtype. None!"=&An API is a list of versioned routers.{An API version has three parts. The first is two are used for API breaking changes, the last for non-API breaking changes.A  is a  and a list of subresources.2An existential where the second argument has kind (* -> *).FConvenience constructor constructing a route without any subresource.4Add the second router as a subresource to the first.Operators with the right fixities to allow you to define routes without using parentheses. Start with the shortest near the root.Operators with the right fixities to allow you to define routes without using parentheses. Start with the shortest near the root.Operators with the right fixities to allow you to define routes without using parentheses. Start with the shortest near the root.Operators with the right fixities to allow you to define routes without using parentheses. Start with the shortest near the root.Operators with the right fixities to allow you to define routes without using parentheses. Start with the shortest near the root.Operators with the right fixities to allow you to define routes without using parentheses. Start with the shortest near the root.0An empty router to use as the root for your API.Smart constructor for .!Get the latest version of an API.Parse a   as a J. The string should contain two or three numbers separated by dots, e.g. 1.12.3.TLook up a version in an API. The string can either be a valid version according to , or "latest".Look up a version in the API.@Given a version string, an API and a fallback, do the following:%Parse the version number or "latest".Look up this version.$If ok, run the given function on it.,If not parsed or found, return the fallback.KK None !"*+3:BEHM%LMNOPQRSTUVWXYZ[\]^_`abcdefghijk#LMNOPQRSTUVWXYZ[\]^_`abcdefghijk NoneHMNonev      >?@ABCDEFGHIJKLMNOPQRSTUVW_`ghijkmnoprstul !"#$%&'()*+,-./012345467879:;<=>?@ABCDEFFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqqrstuuvwxyz{|}~GG                                 !" #$%&'()*+, -./012345454644474789:;<=;<>8?@ABCDCECFCGCHIJKLMN OP Q R S T !U8?V W   X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t uvrest-core-0.34Rest.Dictionary.Types Rest.Handler Rest.ErrorRest.Dictionary.CombinatorsRest.ContainerRest.Driver.TypesRest.Driver.PerformRest.Driver.RestM Rest.Schema Rest.ResourceRest.ApiRest.Driver.RoutingRest.Run Rest.ShowUrl Rest.InfoRest.DictionaryRestDictrest-types-1.12Rest.Types.RangecountoffsetRangemapEorThrow orThrowWitheitherToStatus domainReasonDictsNoneErrorsOutputsInputsErrorXmlEJsonEOutput MultipartOStringOXmlOJsonORawXmlOFileOInputRawXmlIXmlTextIXmlIFileIStringIReadIJsonIParam TwoParamsNoParamHeader TwoHeadersNoHeaderIdentStringIdReadIdFormatNoFormatMultipartFormat FileFormat StringFormat JsonFormat XmlFormatdictsModifier SomeErrorheadersparamsinputsoutputserrorsemptymkHeader addHeadermkParaddParsomeIstringIxmlTextIfileIreadIxmlIrawXmlIjsonIsomeOstringOfileOxmlOrawXmlOjsonO multipartOsomeEjsonExmlExmlJsonIxmlJsonOxmlJsonExmlJsonlistIlistOmappingImappingOstatusOreasonEdefaultE ListHandlerHandlerApply GenHandler dictionaryhandlersecureEnvheaderparaminput mkGenHandler secureHandler mkListingrangemkOrderedListing orderedRange mkHandlermkInputHandlermkConstHandler mkIdHandlerRunnableHandlerRun mapHandler getHeader getParametergetBody getMethodgetPathslookupMimeType setHeadersetResponseCode writeResponse fetchInputsparseContentType parametersparser failureWriter contentType validator outputWriteroutputMultipartaccept $fRestMaybeT$fRestIdentityT $fRestWriterT $fRestStateT $fRestReaderT $fRestRWST $fRestErrorT $fRestContTRestM RestOutput headersSet responseCode RestInputbodymethodpaths mimeTypes emptyInputrunRestM runRestM_EndpointIdGetterBy Singleton CardinalityManySingleStepUnnamedNamedSchema withListing noListing singletonnamedstaticsinglesingleBy singleReadlisting listingBy listingRead unnamedSingleunnamedSingleReadunnamedListingunnamedListingReadVoidmagicResourcename descriptionschemaprivateenterliststaticsgetupdateremovecreateactionsselects mkResource mkResourceIdmkResourceReadermkResourceReaderWithApiVersionfullmajorminorRouterEmbedSome1routecompose-/--/---/----/-----/------/root mkVersionlatest parseVersion lookupVersionlookupVersion' withVersionUriPartssplitUriString mkListHandlermkMultiHandler apiToHandler apiToHandler'Rest.Types.ShowUrlshowUrlShowUrlRest.Types.InfoexampledescribeInfoRest.Types.ErrorReason SomeReasontoResponseCodeToResponseCodetoEither fromEitherReason_UnsupportedRouteUnsupportedMethodUnsupportedVersion IdentError HeaderError ParamError InputError OutputErrorNotFound NotAllowedAuthenticationFailedBusyGone CustomReason ParseError PrintError MissingFieldUnsupportedFormat DataErrorreason DomainReasonFailureSuccessStatusbaseGHC.BaseStringGHC.ReadRead $fShowParam $fShowHeader text-1.2.0.3Data.Text.Internal.LazyTextbytestring-0.10.4.0Data.ByteString.Lazy.Internal ByteStringGHC.ShowShow hxt-9.3.1.10Text.XML.HXT.Arrow.Pickle.Xml XmlPickler mkStatusDict intersectRest.Types.Container SomeOutputitemsListtransformers-0.3.0.0Data.Functor.IdentityIdentityghc-prim GHC.TypesFalseTrueControl.Monad.Trans.ReaderReaderTFCo:R:Apply[]aTFCo:R:ApplyIdentityaRest.Types.MethodGETPUTPOSTDELETEMethodunRestM outputHeader outputCode $fRestRestM$fMonadTransRestM$fMonoidRestOutput Data.EitherLeft singleIdent listingIdentunnamedSingleIdentunnamedListingIdentidReaderT $fShowVersionunRouterapiError runRouter routeRoot routeMultiGet routeRouter routeToplevel routeCreate routeStep routeNamed routeUnnamed routeGettermultirouteListGetterwithSubresource routeSingle routeNamerouteListHandler lookupRouter parseIdent popSegment withSegment noRestPath guardNullPath hasMethod guardMethod mkListActionmkMultiGetHandler runResource fromMaybeT