@@ -22,8 +22,8 @@ import Servant.Docs
22import Data.Proxy
22import Data.Proxy
24instance ToSample Dialog where
24instance ToSample Dialog where
25− toSamples _ = samples ((GroupDialog <$> map snd (toSamples Proxy) <*> map snd (toSamples Proxy)) <>
26− (UserDialog <$> [69] <*> map snd (toSamples Proxy)))
25+ toSamples _ = samples (take 1 (UserDialog <$> [69] <*> map snd (toSamples Proxy)) <>
26+ (GroupDialog <$> map snd (toSamples Proxy) <*> map snd (toSamples Proxy)))
28data Dialog = GroupDialog GroupChat Message | UserDialog UserId Message
28data Dialog = GroupDialog GroupChat Message | UserDialog UserId Message
29 deriving Show
29 deriving Show