Add EmptyAPI type
This commit is contained in:
parent
02fad699aa
commit
d02c7668ee
2 changed files with 11 additions and 0 deletions
|
@ -36,6 +36,7 @@ library
|
|||
Servant.API.BasicAuth
|
||||
Servant.API.Capture
|
||||
Servant.API.ContentTypes
|
||||
Servant.API.Empty
|
||||
Servant.API.Experimental.Auth
|
||||
Servant.API.Header
|
||||
Servant.API.HttpVersion
|
||||
|
|
10
servant/src/Servant/API/Empty.hs
Normal file
10
servant/src/Servant/API/Empty.hs
Normal file
|
@ -0,0 +1,10 @@
|
|||
{-# LANGUAGE DeriveDataTypeable #-}
|
||||
{-# OPTIONS_HADDOCK not-home #-}
|
||||
module Servant.API.Empty(EmptyAPI(..)) where
|
||||
|
||||
import Data.Typeable (Typeable)
|
||||
import Prelude ()
|
||||
import Prelude.Compat
|
||||
|
||||
-- | An empty API: one which serves nothing.
|
||||
data EmptyAPI = EmptyAPI deriving (Typeable, Eq, Show, Bounded)
|
Loading…
Reference in a new issue