Text.Atom.Feed.Validate

feed-0.3.12.0: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds.

Copyright | (c) Galois, Inc. 2008, (c) Sigbjorn Finne 2009-
License | BSD3
Maintainer | Sigbjorn Finne <sof@forkIO.com>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Text.Atom.Feed.Validate

Description

# Documentation

data VTree a #

Constructors

VNode [a] [VTree a] |
VLeaf [a] |

Instances

Eq a => Eq (VTree a) # |
Methods (==) :: VTree a -> VTree a -> Bool # (/=) :: VTree a -> VTree a -> Bool #
Show a => Show (VTree a) # |
Methods showsPrec :: Int -> VTree a -> ShowS # show :: VTree a -> String # showList :: [VTree a] -> ShowS #

type ValidatorResult = VTree (Bool, String) #

advice :: String -> ValidatorResult #

demand :: String -> ValidatorResult #

valid :: ValidatorResult #

mkTree :: [(Bool, String)] -> [ValidatorResult] -> ValidatorResult #

flattenT :: VTree a -> [a] #

validateEntry :: Element -> ValidatorResult #

checkEntryAuthor :: Element -> ValidatorResult #

checkCats :: Element -> ValidatorResult #

checkContents :: Element -> ValidatorResult #

checkContributor :: Element -> ValidatorResult #

checkContentLink :: Element -> ValidatorResult #

checkLinks :: Element -> ValidatorResult #

checkId :: Element -> ValidatorResult #

checkPublished :: Element -> ValidatorResult #

checkRights :: Element -> ValidatorResult #

checkSource :: Element -> ValidatorResult #

checkSummary :: Element -> ValidatorResult #

checkTitle :: Element -> ValidatorResult #

checkUpdated :: Element -> ValidatorResult #

checkCat :: Element -> ValidatorResult #

checkContent :: Element -> ValidatorResult #

checkTerm :: Element -> ValidatorResult #

checkAuthor :: Element -> ValidatorResult #

checkPerson :: Element -> ValidatorResult #

checkName :: Element -> ValidatorResult #

checkEmail :: Element -> ValidatorResult #

checkUri :: Element -> ValidatorResult #