| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
RON.Schema
Synopsis
- data Alias stage = Alias {}
- data CaseTransform = TitleCase
- data Declaration stage
- = DAlias (Alias stage)
- | DEnum TEnum
- | DOpaque Opaque
- | DStructLww (StructLww stage)
- | DStructSet (StructSet stage)
- data Field (stage :: Stage) = Field {
- ronType :: UseType stage
- annotations :: FieldAnnotations
- ext :: XField stage
- type family XField (stage :: Stage)
- newtype FieldAnnotations = FieldAnnotations {}
- defaultFieldAnnotations :: FieldAnnotations
- data MergeStrategy
- data Opaque = Opaque {
- isObject :: Bool
- name :: Text
- annotations :: OpaqueAnnotations
- opaqueAtoms :: Text -> OpaqueAnnotations -> RonType
- opaqueAtoms_ :: Text -> RonType
- opaqueObject :: Text -> OpaqueAnnotations -> RonType
- newtype OpaqueAnnotations = OpaqueAnnotations {
- haskellType :: Maybe Text
- defaultOpaqueAnnotations :: OpaqueAnnotations
- data RonType
- type family Schema (stage :: Stage) where ...
- data Stage
- data Struct (encoding :: StructEncoding) stage = Struct {
- name :: Text
- fields :: Map Text (Field stage)
- annotations :: StructAnnotations
- data StructAnnotations = StructAnnotations {}
- defaultStructAnnotations :: StructAnnotations
- data StructEncoding
- type StructLww = Struct SELww
- type StructSet = Struct SESet
- data TAtom
- newtype TComposite = TEnum TEnum
- data TEnum = Enum {}
- data TObject
- data TypeExpr
- type TypeName = Text
- type family UseType (stage :: Stage) where ...
Documentation
data CaseTransform Source #
Constructors
| TitleCase |
Instances
| Show CaseTransform Source # | |
Defined in RON.Schema Methods showsPrec :: Int -> CaseTransform -> ShowS # show :: CaseTransform -> String # showList :: [CaseTransform] -> ShowS # | |
| FromEDN CaseTransform Source # | |
Defined in RON.Schema.EDN Methods parseEDN :: TaggedValue -> Parser CaseTransform # parseEDNv :: Value -> Parser CaseTransform # | |
data Declaration stage Source #
Constructors
| DAlias (Alias stage) | |
| DEnum TEnum | |
| DOpaque Opaque | |
| DStructLww (StructLww stage) | |
| DStructSet (StructSet stage) |
Instances
| (Show (UseType stage), Show (XField stage)) => Show (Declaration stage) Source # | |
Defined in RON.Schema Methods showsPrec :: Int -> Declaration stage -> ShowS # show :: Declaration stage -> String # showList :: [Declaration stage] -> ShowS # | |
| FromEDN (Declaration Parsed) Source # | |
Defined in RON.Schema.EDN Methods parseEDN :: TaggedValue -> Parser (Declaration Parsed) # | |
data Field (stage :: Stage) Source #
Constructors
| Field | |
Fields
| |
newtype FieldAnnotations Source #
Constructors
| FieldAnnotations | |
Fields | |
Instances
| Show FieldAnnotations Source # | |
Defined in RON.Schema Methods showsPrec :: Int -> FieldAnnotations -> ShowS # show :: FieldAnnotations -> String # showList :: [FieldAnnotations] -> ShowS # | |
| FromEDN FieldAnnotations Source # | |
Defined in RON.Schema.EDN Methods parseEDN :: TaggedValue -> Parser FieldAnnotations # parseEDNv :: Value -> Parser FieldAnnotations # | |
data MergeStrategy Source #
Instances
| Show MergeStrategy Source # | |
Defined in RON.Schema Methods showsPrec :: Int -> MergeStrategy -> ShowS # show :: MergeStrategy -> String # showList :: [MergeStrategy] -> ShowS # | |
| FromEDN MergeStrategy Source # | |
Defined in RON.Schema.EDN Methods parseEDN :: TaggedValue -> Parser MergeStrategy # parseEDNv :: Value -> Parser MergeStrategy # | |
Constructors
| Opaque | |
Fields
| |
opaqueAtoms :: Text -> OpaqueAnnotations -> RonType Source #
opaqueAtoms_ :: Text -> RonType Source #
opaqueObject :: Text -> OpaqueAnnotations -> RonType Source #
newtype OpaqueAnnotations Source #
Constructors
| OpaqueAnnotations | |
Fields
| |
Instances
| Show OpaqueAnnotations Source # | |
Defined in RON.Schema Methods showsPrec :: Int -> OpaqueAnnotations -> ShowS # show :: OpaqueAnnotations -> String # showList :: [OpaqueAnnotations] -> ShowS # | |
Constructors
| TAtom TAtom | |
| TComposite TComposite | |
| TObject TObject | |
| TOpaque Opaque |
type family Schema (stage :: Stage) where ... Source #
Equations
| Schema Parsed = [Declaration Parsed] | |
| Schema Resolved = Map TypeName (Declaration Resolved) |
data Struct (encoding :: StructEncoding) stage Source #
Constructors
| Struct | |
Fields
| |
data StructAnnotations Source #
Constructors
| StructAnnotations | |
Instances
| Show StructAnnotations Source # | |
Defined in RON.Schema Methods showsPrec :: Int -> StructAnnotations -> ShowS # show :: StructAnnotations -> String # showList :: [StructAnnotations] -> ShowS # | |
| FromEDN StructAnnotations Source # | |
Defined in RON.Schema.EDN Methods parseEDN :: TaggedValue -> Parser StructAnnotations # parseEDNv :: Value -> Parser StructAnnotations # | |
data StructEncoding Source #
newtype TComposite Source #
TODO(2019-08-04, cblp) do we need is as a group?
Instances
| Show TComposite Source # | |
Defined in RON.Schema Methods showsPrec :: Int -> TComposite -> ShowS # show :: TComposite -> String # showList :: [TComposite] -> ShowS # | |
Constructors
| TORSet RonType | |
| TORSetMap RonType RonType | |
| TRga RonType | |
| TStructLww (StructLww Resolved) | |
| TStructSet (StructSet Resolved) | |
| TVersionVector |