S.Docs: added instance ToSample ()

This commit is contained in:
Sönke Hahn 2014-11-13 15:11:32 +08:00
parent 82ff0a6ad7
commit 69041cc39e

View file

@ -322,6 +322,9 @@ class HasDocs layout where
class ToJSON a => ToSample a where class ToJSON a => ToSample a where
toSample :: Proxy a -> Maybe ByteString toSample :: Proxy a -> Maybe ByteString
instance ToSample () where
toSample Proxy = Just $ encode ()
-- | The class that helps us automatically get documentation -- | The class that helps us automatically get documentation
-- for GET parameters. -- for GET parameters.
-- --