From c2211e95342186d480dd858810239e186dbf149c Mon Sep 17 00:00:00 2001 From: Alp Mestanogullari Date: Sat, 9 May 2015 16:06:11 +0200 Subject: [PATCH 1/2] add missing exports (lenses) to servant-docs's Servant.Docs module --- servant-docs/src/Servant/Docs.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servant-docs/src/Servant/Docs.hs b/servant-docs/src/Servant/Docs.hs index 706ede3e..627f9593 100644 --- a/servant-docs/src/Servant/Docs.hs +++ b/servant-docs/src/Servant/Docs.hs @@ -155,11 +155,11 @@ module Servant.Docs , -- * ADTs to represent an 'API' Method(..) , Endpoint, path, method, defEndpoint - , API, emptyAPI + , API, apiIntros, apiEndpoints, emptyAPI , DocCapture(..), capSymbol, capDesc , DocQueryParam(..), ParamKind(..), paramName, paramValues, paramDesc, paramKind , DocNote(..), noteTitle, noteBody - , DocIntro(..) + , DocIntro(..), introTitle, introBody , Response(..), respStatus, respTypes, respBody, defResponse , Action, captures, headers, notes, params, rqtypes, rqbody, response, defAction , single From b6f7efe8e2df9b80a75a2f61ebaddfe17bbde301 Mon Sep 17 00:00:00 2001 From: Alp Mestanogullari Date: Sat, 9 May 2015 16:28:19 +0200 Subject: [PATCH 2/2] put intro titles at the same level as the endpoints --- servant-docs/src/Servant/Docs/Internal.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servant-docs/src/Servant/Docs/Internal.hs b/servant-docs/src/Servant/Docs/Internal.hs index f0e18456..c1e5b724 100644 --- a/servant-docs/src/Servant/Docs/Internal.hs +++ b/servant-docs/src/Servant/Docs/Internal.hs @@ -495,7 +495,7 @@ markdown api = unlines $ introStr :: DocIntro -> [String] introStr i = - ("#### " ++ i ^. introTitle) : + ("## " ++ i ^. introTitle) : "" : intersperse "" (i ^. introBody) ++ "" :