Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data XRD = XRD {
- xrdID :: Maybe Text
- xrdExpires :: Maybe UTCTime
- xrdSubject :: Maybe Subject
- xrdAliases :: [Subject]
- xrdProperties :: [Property]
- xrdLinks :: [Link]
- emptyXRD :: XRD
- newtype Subject = Subject (URIRef Absolute)
- subject :: Text -> Either URIParseError Subject
- data Property = Property (URIRef Absolute) (Maybe Text)
- property :: Text -> Maybe Text -> Either URIParseError Property
- property_ :: Text -> Either URIParseError Property
- data Link = Link {}
- emptyLink :: Link
- data LinkRel
- linkRelURI :: Text -> Either URIParseError LinkRel
- linkRelText :: LinkRel -> Text
- newtype LinkType = LinkType Text
- data Title = Title (Maybe Text) Text
- uri :: Text -> Either URIParseError (URIRef Absolute)
- data URIParseError :: *
- uriText :: URIRef Absolute -> Text
Documentation
XRD | |
|
Document fields
linkRelURI :: Text -> Either URIParseError LinkRel Source #
linkRelText :: LinkRel -> Text Source #
URI building helper
data URIParseError :: * #
MalformedScheme SchemaError | |
MalformedUserInfo | |
MalformedQuery | |
MalformedFragment | |
MalformedHost | |
MalformedPort | |
MalformedPath | |
OtherError String | Catchall for unpredictable errors |