on master help sign in
Document Enumable
commitb86acbdf71b0fda4abec8ff0739adabfd3a5a22f authorOllie Charles <ollie@ocharles.org.uk> dateFri 18 Jun 2021, 10:54 (5 years ago) parent32395d0
1 file changed+2
src/Rel8/Type/Enum.hs+2
src/Rel8/Type/Enum.hs+2
@@ -104,6 +104,8 @@ class (DBType a, Enumable a) => DBEnum a where
104104 enumTypeName :: String
105105
106106
107+-- | Types that are sum types, where each constructor is unary (that is, has no
108+-- fields).
107109class (Generic a, GEnumable (Rep a)) => Enumable a
108110instance (Generic a, GEnumable (Rep a)) => Enumable a
109111