License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Representation of the "type" of a schema.
Documentation
newtype SingleOrList a Source #
SingleOrList | |
|
Instances
data SchemaType Source #
Simple (SingleOrList Text) | A basic built-in type |
Alternatives [SchemaType] | Any one of multiple possible schema types |
Reference SchemaIdReference | A reference to a schema defined elsewhere |
ListOf SchemaType | Members of a list, all of the given schema type |
Instances
Show SchemaType Source # | |
Defined in Swarm.Doc.Schema.SchemaType showsPrec :: Int -> SchemaType -> ShowS # show :: SchemaType -> String # showList :: [SchemaType] -> ShowS # | |
Eq SchemaType Source # | |
Defined in Swarm.Doc.Schema.SchemaType (==) :: SchemaType -> SchemaType -> Bool # (/=) :: SchemaType -> SchemaType -> Bool # | |
Ord SchemaType Source # | |
Defined in Swarm.Doc.Schema.SchemaType compare :: SchemaType -> SchemaType -> Ordering # (<) :: SchemaType -> SchemaType -> Bool # (<=) :: SchemaType -> SchemaType -> Bool # (>) :: SchemaType -> SchemaType -> Bool # (>=) :: SchemaType -> SchemaType -> Bool # max :: SchemaType -> SchemaType -> SchemaType # min :: SchemaType -> SchemaType -> SchemaType # |
newtype SchemaIdReference Source #
Instances
Show SchemaIdReference Source # | |
Defined in Swarm.Doc.Schema.SchemaType showsPrec :: Int -> SchemaIdReference -> ShowS # show :: SchemaIdReference -> String # showList :: [SchemaIdReference] -> ShowS # | |
Eq SchemaIdReference Source # | |
Defined in Swarm.Doc.Schema.SchemaType (==) :: SchemaIdReference -> SchemaIdReference -> Bool # (/=) :: SchemaIdReference -> SchemaIdReference -> Bool # | |
Ord SchemaIdReference Source # | |
Defined in Swarm.Doc.Schema.SchemaType compare :: SchemaIdReference -> SchemaIdReference -> Ordering # (<) :: SchemaIdReference -> SchemaIdReference -> Bool # (<=) :: SchemaIdReference -> SchemaIdReference -> Bool # (>) :: SchemaIdReference -> SchemaIdReference -> Bool # (>=) :: SchemaIdReference -> SchemaIdReference -> Bool # max :: SchemaIdReference -> SchemaIdReference -> SchemaIdReference # min :: SchemaIdReference -> SchemaIdReference -> SchemaIdReference # |