Safe Haskell | Safe-Infered |
---|
- convert :: Environment -> Schema -> [Decl]
- comment :: Annotation -> Comment
- xname :: String -> XName
- checkXName :: Schema -> QName -> XName
- nameOfSimple :: SimpleType -> XName
- mkRestrict :: Restriction -> [Restrict]
- singleton :: a -> [a]
- consolidate :: Occurs -> (FacetType, Annotation, String) -> Occurs
- supertypeOf :: Environment -> QName -> Maybe QName
- repeatedly :: (a -> Maybe a) -> a -> [a]
Documentation
convert :: Environment -> Schema -> [Decl]Source
Given an environment of schema type mappings, and a schema module, create a bunch of Decls that describe the types in a more Haskell-friendly way.
comment :: Annotation -> CommentSource
checkXName :: Schema -> QName -> XNameSource
mkRestrict :: Restriction -> [Restrict]Source
consolidate :: Occurs -> (FacetType, Annotation, String) -> OccursSource
Consolidate a Facet occurrence into a single Occurs value.
supertypeOf :: Environment -> QName -> Maybe QNameSource
Find the supertype (if it exists) of a given type name.
repeatedly :: (a -> Maybe a) -> a -> [a]Source
Keep applying the function to transform the value, until it yields Nothing. Returns the sequence of transformed values.