Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data PrettyJSON Source #
PrettyJSON content type.
Instances
Accept PrettyJSON Source # | |
Defined in Servant.Docs.Internal.Pretty contentType :: Proxy PrettyJSON -> MediaType # | |
ToJSON a => MimeRender PrettyJSON a Source # | |
Defined in Servant.Docs.Internal.Pretty mimeRender :: Proxy PrettyJSON -> a -> ByteString # |
type family Pretty (api :: k) :: k where ... Source #
Replace all JSON content types with PrettyJSON.
Kind-polymorphic so it can operate on kinds *
and [*]
.
Pretty (x :<|> y) = Pretty x :<|> Pretty y | |
Pretty (x :> y) = Pretty x :> Pretty y | |
Pretty (Get cs r) = Get (Pretty cs) r | |
Pretty (Post cs r) = Post (Pretty cs) r | |
Pretty (Put cs r) = Put (Pretty cs) r | |
Pretty (Delete cs r) = Delete (Pretty cs) r | |
Pretty (Patch cs r) = Patch (Pretty cs) r | |
Pretty (ReqBody cs r) = ReqBody (Pretty cs) r | |
Pretty (JSON ': xs) = PrettyJSON ': xs | |
Pretty (x ': xs) = x ': Pretty xs | |
Pretty x = x |