Hoogle Search
Within LTS Haskell 24.31 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
toSchemaBoundedIntegral :: (Bounded a, Integral a) => Proxy a -> Schemaopenapi3 Data.OpenApi.Schema Default schema for Bounded, Integral types.
>>> BSL.putStrLn $ encodePretty $ toSchemaBoundedIntegral (Proxy :: Proxy Int16) { "maximum": 32767, "minimum": -32768, "type": "integer" }class JoinSemiLattice a =>
LowerBounded anumhask NumHask A join-semilattice with an identity element bottom for \/.
x \/ bottom == bottom
class MeetSemiLattice a =>
UpperBounded anumhask NumHask A meet-semilattice with an identity element top for /\.
x /\ top == top
class JoinSemiLattice a =>
LowerBounded anumhask NumHask.Algebra.Lattice A join-semilattice with an identity element bottom for \/.
x \/ bottom == bottom
class MeetSemiLattice a =>
UpperBounded anumhask NumHask.Algebra.Lattice A meet-semilattice with an identity element top for /\.
x /\ top == top
-
swagger2 Data.Swagger.Internal.ParamSchema Default plain schema for Bounded, Integral types.
>>> encode $ toParamSchemaBoundedIntegral (Proxy :: Proxy Int8) "{\"maximum\":127,\"minimum\":-128,\"type\":\"integer\"}" -
swagger2 Data.Swagger.Internal.Schema toSchemaBoundedIntegral :: (Bounded a, Integral a) => Proxy a -> Schemaswagger2 Data.Swagger.Internal.Schema Default schema for Bounded, Integral types.
>>> encode $ toSchemaBoundedIntegral (Proxy :: Proxy Int16) "{\"maximum\":32767,\"minimum\":-32768,\"type\":\"integer\"}"-
swagger2 Data.Swagger.ParamSchema Default plain schema for Bounded, Integral types.
>>> encode $ toParamSchemaBoundedIntegral (Proxy :: Proxy Int8) "{\"maximum\":127,\"minimum\":-128,\"type\":\"integer\"}" -
swagger2 Data.Swagger.Schema