S.Docs: added instance ToSample ()
This commit is contained in:
parent
82ff0a6ad7
commit
69041cc39e
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,9 @@ class HasDocs layout where
|
|||
class ToJSON a => ToSample a where
|
||||
toSample :: Proxy a -> Maybe ByteString
|
||||
|
||||
instance ToSample () where
|
||||
toSample Proxy = Just $ encode ()
|
||||
|
||||
-- | The class that helps us automatically get documentation
|
||||
-- for GET parameters.
|
||||
--
|
||||
|
|
Loading…
Reference in a new issue