module Text.Atom.Pub
( Service (..)
, Workspace (..)
, Collection (..)
, Categories (..)
, Accept (..)
) where
import Text.XML.Light.Types as XML
import Text.Atom.Feed ( TextContent, Category, URI )
data Service
= Service
{ serviceWorkspaces :: [Workspace]
, serviceOther :: [XML.Element]
}
data Workspace
= Workspace
{ workspaceTitle :: TextContent
, workspaceCols :: [Collection]
, workspaceOther :: [XML.Element]
}
data Collection
= Collection
{ collectionURI :: URI
, collectionTitle :: TextContent
, collectionAccept :: [Accept]
, collectionCats :: [Categories]
, collectionOther :: [XML.Element]
}
data Categories
= CategoriesExternal URI
| Categories (Maybe Bool) (Maybe URI) [Category]
deriving (Show)
newtype Accept = Accept { acceptType :: String }