X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhalcyon.git;a=blobdiff_plain;f=src%2FTwitter%2FXml.hs;h=1b1ea48e9015ce1732e6898d4dcbfdf7b98b3176;hp=8ffd9dd57196e1aeebac59d4bd4bab250ff766bc;hb=27c6a7e62a428ceb1d2a60d456b075feee196da9;hpb=5f1220bd5d1b6893a4e2c0a179b3244a12eae6c8 diff --git a/src/Twitter/Xml.hs b/src/Twitter/Xml.hs index 8ffd9dd..1b1ea48 100644 --- a/src/Twitter/Xml.hs +++ b/src/Twitter/Xml.hs @@ -15,6 +15,13 @@ get_char_data (CRef ref) = Just (verbatim ref) -- Entities. get_char_data _ = Nothing +-- |A 'CFilter' returning all top-level elements. +-- The name is due to the fact that if we retrieve more than +-- one status, they will be wrapped in a tag, and +-- thus not be top-level. +single_status :: CFilter +single_status = (tag "status") + -- |A 'CFilter' returning all tags within . all_statuses :: CFilter all_statuses = (tag "statuses" /> tag "status")