| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.Doc.Schema.SchemaType
Description
Representation of the "type" of a schema.
Documentation
newtype SingleOrList a Source #
Constructors
| SingleOrList | |
Fields
| |
Instances
data SchemaType Source #
Constructors
| 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 Methods showsPrec :: Int -> SchemaType -> ShowS # show :: SchemaType -> String # showList :: [SchemaType] -> ShowS # | |
| Eq SchemaType Source # | |
Defined in Swarm.Doc.Schema.SchemaType | |
| Ord SchemaType Source # | |
Defined in Swarm.Doc.Schema.SchemaType Methods 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 #
Constructors
| SchemaIdReference Text |
Instances
| Show SchemaIdReference Source # | |
Defined in Swarm.Doc.Schema.SchemaType Methods showsPrec :: Int -> SchemaIdReference -> ShowS # show :: SchemaIdReference -> String # showList :: [SchemaIdReference] -> ShowS # | |
| Eq SchemaIdReference Source # | |
Defined in Swarm.Doc.Schema.SchemaType Methods (==) :: SchemaIdReference -> SchemaIdReference -> Bool # (/=) :: SchemaIdReference -> SchemaIdReference -> Bool # | |
| Ord SchemaIdReference Source # | |
Defined in Swarm.Doc.Schema.SchemaType Methods compare :: SchemaIdReference -> SchemaIdReference -> Ordering # (<) :: SchemaIdReference -> SchemaIdReference -> Bool # (<=) :: SchemaIdReference -> SchemaIdReference -> Bool # (>) :: SchemaIdReference -> SchemaIdReference -> Bool # (>=) :: SchemaIdReference -> SchemaIdReference -> Bool # max :: SchemaIdReference -> SchemaIdReference -> SchemaIdReference # min :: SchemaIdReference -> SchemaIdReference -> SchemaIdReference # | |