From 249a8386a5d60974cca941a69b7b81b6f30f7d24 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 16 May 2017 16:04:25 +0000 Subject: [PATCH] Derive Enum on EmptyAPI --- servant/src/Servant/API/Empty.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servant/src/Servant/API/Empty.hs b/servant/src/Servant/API/Empty.hs index d9b80787..efc79356 100644 --- a/servant/src/Servant/API/Empty.hs +++ b/servant/src/Servant/API/Empty.hs @@ -9,4 +9,4 @@ import Prelude.Compat -- | An empty API: one which serves nothing. Morally speaking, this should be -- the unit of ':<|>'. Implementors of interpretations of API types should -- treat 'EmptyAPI' as close to the unit as possible. -data EmptyAPI = EmptyAPI deriving (Typeable, Eq, Show, Bounded) +data EmptyAPI = EmptyAPI deriving (Typeable, Eq, Show, Bounded, Enum)