From 83bbc6d5208d2a121490624551e32af83536d1e2 Mon Sep 17 00:00:00 2001 From: Cary Robbins Date: Thu, 1 Oct 2020 07:02:43 -0500 Subject: [PATCH] Add instance for ToSample NonEmpty (#1330) --- servant-docs/src/Servant/Docs/Internal.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/servant-docs/src/Servant/Docs/Internal.hs b/servant-docs/src/Servant/Docs/Internal.hs index b289e0c7..e9e95692 100644 --- a/servant-docs/src/Servant/Docs/Internal.hs +++ b/servant-docs/src/Servant/Docs/Internal.hs @@ -1064,6 +1064,7 @@ instance (ToSample a, ToSample b, ToSample c, ToSample d, ToSample e, ToSample f instance ToSample a => ToSample (Maybe a) instance (ToSample a, ToSample b) => ToSample (Either a b) instance ToSample a => ToSample [a] +instance ToSample a => ToSample (NonEmpty a) -- ToSample instances for Control.Applicative types instance ToSample a => ToSample (Const a b)