dublincore-xml-conduit-0.1.0.3: XML streaming parser/renderer for the Dublin Core standard elements.
Safe HaskellNone
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 :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:contributor> element.

elementCoverage :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:coverage> element.

elementCreator :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:creator> element.

elementDate :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe UTCTime) Source #

Parse a <dc:date> element.

Throws InvalidTime in case date is malformatted.

elementDescription :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:description> element.

elementFormat :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:format> element.

elementIdentifier :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:identifier> element.

elementLanguage :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:language> element.

elementPublisher :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:publisher> element.

elementRelation :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:relation> element.

elementRights :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:rights> element.

elementSource :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:source> element.

elementSubject :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:subject> element.

elementTitle :: forall (m :: Type -> Type) o. MonadThrow m => ConduitM Event o m (Maybe Text) Source #

Parse a <dc:title> element.

elementType :: forall (m :: Type -> Type) o. 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 
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-KPZO8AAssEt86EuYLtErNt" 'True) (C1 ('MetaCons "InvalidTime" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))
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-KPZO8AAssEt86EuYLtErNt" 'True) (C1 ('MetaCons "InvalidTime" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))