dublincore-xml-conduit-0.1.0.3: XML streaming parser/renderer for the Dublin Core standard elements.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.XML.DublinCore.Conduit.Parse

Contents

Description

XML streaming parsers for the Dublin Core Metadata Element Set.

This module is meant to be imported qualified, like this:

import qualified Text.XML.DublinCore.Conduit.Parse as DC
Synopsis

Elements

elementContributor :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:contributor> element.

elementCoverage :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:coverage> element.

elementCreator :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:creator> element.

elementDate :: MonadThrow m => ConduitM Event o m (Maybe UTCTime) Source #

Parse a <dc:date> element.

Throws InvalidTime in case date is malformatted.

elementDescription :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:description> element.

elementFormat :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:format> element.

elementIdentifier :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:identifier> element.

elementLanguage :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:language> element.

elementPublisher :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:publisher> element.

elementRelation :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:relation> element.

elementRights :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:rights> element.

elementSource :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:source> element.

elementSubject :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:subject> element.

elementTitle :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:title> element.

elementType :: MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:type> element.

Misc

newtype ParsingException Source #

Constructors

InvalidTime Text 

Instances

Instances details
Exception ParsingException Source # 
Instance details

Defined in Text.XML.DublinCore.Conduit.Parse

Generic ParsingException Source # 
Instance details

Defined in Text.XML.DublinCore.Conduit.Parse

Associated Types

type Rep ParsingException :: Type -> Type #

Show ParsingException Source # 
Instance details

Defined in Text.XML.DublinCore.Conduit.Parse

Eq ParsingException Source # 
Instance details

Defined in Text.XML.DublinCore.Conduit.Parse

Ord ParsingException Source # 
Instance details

Defined in Text.XML.DublinCore.Conduit.Parse

type Rep ParsingException Source # 
Instance details

Defined in Text.XML.DublinCore.Conduit.Parse

type Rep ParsingException = D1 ('MetaData "ParsingException" "Text.XML.DublinCore.Conduit.Parse" "dublincore-xml-conduit-0.1.0.3-3LujCpM7frSDWIegF7xkxP" 'True) (C1 ('MetaCons "InvalidTime" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))