@@ -159,11 +159,19 @@ toSchemaBoundedEnum _ = mempty
159159 & schemaType .~ SchemaString
160160 & schemaEnum ?~ map toJSON [minBound..maxBound :: a]
161161
162+genericToNamedSchemaBoundedIntegral :: forall a d f proxy.
163+ ( Bounded a, Integral a
164+ , Generic a, Rep a ~ D1 d f, Datatype d)
165+ => SchemaOptions -> proxy a -> NamedSchema
166+genericToNamedSchemaBoundedIntegral opts proxy
167+ = (gdatatypeSchemaName opts (Proxy :: Proxy d), toSchemaBoundedIntegral proxy)
168+
162169genericToNamedSchemaBoundedEnum :: forall a d f proxy.
163170 ( ToJSON a, Bounded a, Enum a
164171 , Generic a, Rep a ~ D1 d f, Datatype d)
165172 => SchemaOptions -> proxy a -> NamedSchema
166−genericToNamedSchemaBoundedEnum opts proxy = (gdatatypeSchemaName opts (Proxy :: Proxy d), toSchemaBoundedEnum proxy)
173+genericToNamedSchemaBoundedEnum opts proxy
174+ = (gdatatypeSchemaName opts (Proxy :: Proxy d), toSchemaBoundedEnum proxy)
167175
168176genericToSchema :: (Generic a, GToSchema (Rep a)) => SchemaOptions -> proxy a -> Schema
169177genericToSchema opts = snd . genericToNamedSchema opts