git.iko.soy/typeable/servant
on master help sign in
Derive Enum on EmptyAPI
249a838David Turner
servant/src/Servant/API/Empty.hs+1−1
@@ -9,4 +9,4 @@ import Prelude.Compat
9-- | An empty API: one which serves nothing. Morally speaking, this should be
9-- | An empty API: one which serves nothing. Morally speaking, this should be
10-- the unit of ':<|>'. Implementors of interpretations of API types should
10-- the unit of ':<|>'. Implementors of interpretations of API types should
11-- treat 'EmptyAPI' as close to the unit as possible.
11-- treat 'EmptyAPI' as close to the unit as possible.
12−data EmptyAPI = EmptyAPI deriving (Typeable, Eq, Show, Bounded)
12+data EmptyAPI = EmptyAPI deriving (Typeable, Eq, Show, Bounded, Enum)