ComprehensiveAPI: add some comments (and minor tweaks)

This commit is contained in:
Sönke Hahn 2016-01-18 19:55:14 +01:00
parent 14aac5fc9f
commit ac930ef198
6 changed files with 10 additions and 2 deletions

View file

@ -53,6 +53,7 @@ import Servant.API.Internal.Test.ComprehensiveAPI
import Servant.Client
import Servant.Server
-- This declaration simply checks that all instances are in place.
_ = client comprehensiveAPI
spec :: Spec

View file

@ -23,6 +23,7 @@ import Servant.Docs.Internal
-- * comprehensive api
-- This declaration simply checks that all instances are in place.
_ = docs comprehensiveAPI
instance ToParam (QueryParam "foo" Int) where

View file

@ -32,7 +32,8 @@ import Servant.JSSpec.CustomHeaders
-- * comprehensive api
_ = (jsForAPI comprehensiveAPI vanillaJS :: Text)
-- This declaration simply checks that all instances are in place.
_ = jsForAPI comprehensiveAPI vanillaJS :: Text
-- * specs

View file

@ -20,6 +20,7 @@ import Servant
import Servant.API.Internal.Test.ComprehensiveAPI
import Servant.Mock
-- This declaration simply checks that all instances are in place.
_ = mock comprehensiveAPI
data Body

View file

@ -63,7 +63,8 @@ import Servant.Server.Internal.Router
-- * comprehensive api test
_ = serve comprehensiveAPI (error "unused") (error "unused")
-- This declaration simply checks that all instances are in place.
_ = serve comprehensiveAPI
-- * Specs

View file

@ -1,6 +1,9 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
-- | This is a module containing an API with all `Servant.API` combinators. It
-- is used for testing only (in particular, checking that instances exist for
-- the core servant classes for each combinator), and should not be imported.
module Servant.API.Internal.Test.ComprehensiveAPI where
import Data.Proxy