iCalendar-0.4.0.4: iCalendar data types, parser, and printer.

Safe HaskellSafe
LanguageHaskell98

Text.ICalendar.Types

Description

ICalendar types, based on RFC5545.

Synopsis

Documentation

data VCalendar Source #

VCalendar component. 3.4.

Constructors

VCalendar 

Fields

Instances

Eq VCalendar Source # 
Ord VCalendar Source # 
Show VCalendar Source # 
Semigroup VCalendar Source #

vcMethod is ignored at the moment.

Picks the left in most cases.

On UIDRecurrenceIdTZID clash, picks the VEvents, VTodos and VJournals with the highest (Sequence, DTStamp), the VTimeZones with the highest LastModified, and VFreeBusy with the highest DTStamp.

If the Sequence, DTStamp or LastModified is the same, picks the left.

Monoid VCalendar Source # 
Default VCalendar Source # 

Methods

def :: VCalendar #

data ProdId Source #

Product Identifier. 3.7.3.

Constructors

ProdId 

data Scale Source #

Calendar Scale. 3.7.1.

Constructors

Scale 

Instances

Eq Scale Source # 

Methods

(==) :: Scale -> Scale -> Bool #

(/=) :: Scale -> Scale -> Bool #

Ord Scale Source # 

Methods

compare :: Scale -> Scale -> Ordering #

(<) :: Scale -> Scale -> Bool #

(<=) :: Scale -> Scale -> Bool #

(>) :: Scale -> Scale -> Bool #

(>=) :: Scale -> Scale -> Bool #

max :: Scale -> Scale -> Scale #

min :: Scale -> Scale -> Scale #

Show Scale Source # 

Methods

showsPrec :: Int -> Scale -> ShowS #

show :: Scale -> String #

showList :: [Scale] -> ShowS #

Default Scale Source # 

Methods

def :: Scale #

data Method Source #

Method. 3.7.2.

Constructors

Method 

data VOther Source #

Any other component not recognized.

Constructors

VOther 

data Class Source #

Classification. 3.8.1.3.

Constructors

Class 

Instances

Eq Class Source # 

Methods

(==) :: Class -> Class -> Bool #

(/=) :: Class -> Class -> Bool #

Ord Class Source # 

Methods

compare :: Class -> Class -> Ordering #

(<) :: Class -> Class -> Bool #

(<=) :: Class -> Class -> Bool #

(>) :: Class -> Class -> Bool #

(>=) :: Class -> Class -> Bool #

max :: Class -> Class -> Class #

min :: Class -> Class -> Class #

Show Class Source # 

Methods

showsPrec :: Int -> Class -> ShowS #

show :: Class -> String #

showList :: [Class] -> ShowS #

Default Class Source # 

Methods

def :: Class #

data Geo Source #

Geographic Position. 3.8.1.6.

Constructors

Geo 

Instances

Eq Geo Source # 

Methods

(==) :: Geo -> Geo -> Bool #

(/=) :: Geo -> Geo -> Bool #

Ord Geo Source # 

Methods

compare :: Geo -> Geo -> Ordering #

(<) :: Geo -> Geo -> Bool #

(<=) :: Geo -> Geo -> Bool #

(>) :: Geo -> Geo -> Bool #

(>=) :: Geo -> Geo -> Bool #

max :: Geo -> Geo -> Geo #

min :: Geo -> Geo -> Geo #

Show Geo Source # 

Methods

showsPrec :: Int -> Geo -> ShowS #

show :: Geo -> String #

showList :: [Geo] -> ShowS #

data Date Source #

Date. 3.3.4

Constructors

Date 

Fields

Instances

Eq Date Source # 

Methods

(==) :: Date -> Date -> Bool #

(/=) :: Date -> Date -> Bool #

Ord Date Source # 

Methods

compare :: Date -> Date -> Ordering #

(<) :: Date -> Date -> Bool #

(<=) :: Date -> Date -> Bool #

(>) :: Date -> Date -> Bool #

(>=) :: Date -> Date -> Bool #

max :: Date -> Date -> Date #

min :: Date -> Date -> Date #

Show Date Source # 

Methods

showsPrec :: Int -> Date -> ShowS #

show :: Date -> String #

showList :: [Date] -> ShowS #

data DTEnd Source #

Date-Time End. 3.8.2.2.

Instances

Eq DTEnd Source # 

Methods

(==) :: DTEnd -> DTEnd -> Bool #

(/=) :: DTEnd -> DTEnd -> Bool #

Ord DTEnd Source # 

Methods

compare :: DTEnd -> DTEnd -> Ordering #

(<) :: DTEnd -> DTEnd -> Bool #

(<=) :: DTEnd -> DTEnd -> Bool #

(>) :: DTEnd -> DTEnd -> Bool #

(>=) :: DTEnd -> DTEnd -> Bool #

max :: DTEnd -> DTEnd -> DTEnd #

min :: DTEnd -> DTEnd -> DTEnd #

Show DTEnd Source # 

Methods

showsPrec :: Int -> DTEnd -> ShowS #

show :: DTEnd -> String #

showList :: [DTEnd] -> ShowS #

data Due Source #

Date-Time Due. 3.8.2.3.

Instances

Eq Due Source # 

Methods

(==) :: Due -> Due -> Bool #

(/=) :: Due -> Due -> Bool #

Ord Due Source # 

Methods

compare :: Due -> Due -> Ordering #

(<) :: Due -> Due -> Bool #

(<=) :: Due -> Due -> Bool #

(>) :: Due -> Due -> Bool #

(>=) :: Due -> Due -> Bool #

max :: Due -> Due -> Due #

min :: Due -> Due -> Due #

Show Due Source # 

Methods

showsPrec :: Int -> Due -> ShowS #

show :: Due -> String #

showList :: [Due] -> ShowS #

data Sign Source #

Sign.

Constructors

Positive 
Negative 

Instances

Eq Sign Source # 

Methods

(==) :: Sign -> Sign -> Bool #

(/=) :: Sign -> Sign -> Bool #

Ord Sign Source # 

Methods

compare :: Sign -> Sign -> Ordering #

(<) :: Sign -> Sign -> Bool #

(<=) :: Sign -> Sign -> Bool #

(>) :: Sign -> Sign -> Bool #

(>=) :: Sign -> Sign -> Bool #

max :: Sign -> Sign -> Sign #

min :: Sign -> Sign -> Sign #

Show Sign Source # 

Methods

showsPrec :: Int -> Sign -> ShowS #

show :: Sign -> String #

showList :: [Sign] -> ShowS #

Default Sign Source # 

Methods

def :: Sign #

data FBType Source #

Free/Busy Time Type. 3.2.9.

Unrecognized FBTypeX MUST be treated as Busy.

data TZID Source #

Time Zone Identifier. 3.8.3.1.

Constructors

TZID 

Instances

Eq TZID Source # 

Methods

(==) :: TZID -> TZID -> Bool #

(/=) :: TZID -> TZID -> Bool #

Ord TZID Source # 

Methods

compare :: TZID -> TZID -> Ordering #

(<) :: TZID -> TZID -> Bool #

(<=) :: TZID -> TZID -> Bool #

(>) :: TZID -> TZID -> Bool #

(>=) :: TZID -> TZID -> Bool #

max :: TZID -> TZID -> TZID #

min :: TZID -> TZID -> TZID #

Show TZID Source # 

Methods

showsPrec :: Int -> TZID -> ShowS #

show :: TZID -> String #

showList :: [TZID] -> ShowS #

data TZName Source #

Time Zone Name. 3.8.3.2.

data UTCOffset Source #

UTC Offset. 3.3.14, 3.8.3.4, and 3.8.3.3. (unified-ish)

Constructors

UTCOffset 

Fields

data TZUrl Source #

Time Zone URL. 3.8.3.5.

Constructors

TZUrl 

Instances

Eq TZUrl Source # 

Methods

(==) :: TZUrl -> TZUrl -> Bool #

(/=) :: TZUrl -> TZUrl -> Bool #

Ord TZUrl Source # 

Methods

compare :: TZUrl -> TZUrl -> Ordering #

(<) :: TZUrl -> TZUrl -> Bool #

(<=) :: TZUrl -> TZUrl -> Bool #

(>) :: TZUrl -> TZUrl -> Bool #

(>=) :: TZUrl -> TZUrl -> Bool #

max :: TZUrl -> TZUrl -> TZUrl #

min :: TZUrl -> TZUrl -> TZUrl #

Show TZUrl Source # 

Methods

showsPrec :: Int -> TZUrl -> ShowS #

show :: TZUrl -> String #

showList :: [TZUrl] -> ShowS #

data CUType Source #

Calendar User Type. 3.2.3.

Unrecognized CUTypeX MUST be treated as Unknown.

data Role Source #

Role. 3.2.16.

Instances

Eq Role Source # 

Methods

(==) :: Role -> Role -> Bool #

(/=) :: Role -> Role -> Bool #

Ord Role Source # 

Methods

compare :: Role -> Role -> Ordering #

(<) :: Role -> Role -> Bool #

(<=) :: Role -> Role -> Bool #

(>) :: Role -> Role -> Bool #

(>=) :: Role -> Role -> Bool #

max :: Role -> Role -> Role #

min :: Role -> Role -> Role #

Show Role Source # 

Methods

showsPrec :: Int -> Role -> ShowS #

show :: Role -> String #

showList :: [Role] -> ShowS #

Default Role Source # 

Methods

def :: Role #

data Range Source #

Recurrence Identifier Range. 3.2.13

Instances

Eq Range Source # 

Methods

(==) :: Range -> Range -> Bool #

(/=) :: Range -> Range -> Bool #

Ord Range Source # 

Methods

compare :: Range -> Range -> Ordering #

(<) :: Range -> Range -> Bool #

(<=) :: Range -> Range -> Bool #

(>) :: Range -> Range -> Bool #

(>=) :: Range -> Range -> Bool #

max :: Range -> Range -> Range #

min :: Range -> Range -> Range #

Show Range Source # 

Methods

showsPrec :: Int -> Range -> ShowS #

show :: Range -> String #

showList :: [Range] -> ShowS #

data URL Source #

Uniform Resource Locator. 3.8.4.6.

Constructors

URL 

Instances

Eq URL Source # 

Methods

(==) :: URL -> URL -> Bool #

(/=) :: URL -> URL -> Bool #

Ord URL Source # 

Methods

compare :: URL -> URL -> Ordering #

(<) :: URL -> URL -> Bool #

(<=) :: URL -> URL -> Bool #

(>) :: URL -> URL -> Bool #

(>=) :: URL -> URL -> Bool #

max :: URL -> URL -> URL #

min :: URL -> URL -> URL #

Show URL Source # 

Methods

showsPrec :: Int -> URL -> ShowS #

show :: URL -> String #

showList :: [URL] -> ShowS #

data UID Source #

Unique Identifier. 3.8.4.7.

Constructors

UID 

Instances

Eq UID Source # 

Methods

(==) :: UID -> UID -> Bool #

(/=) :: UID -> UID -> Bool #

Ord UID Source # 

Methods

compare :: UID -> UID -> Ordering #

(<) :: UID -> UID -> Bool #

(<=) :: UID -> UID -> Bool #

(>) :: UID -> UID -> Bool #

(>=) :: UID -> UID -> Bool #

max :: UID -> UID -> UID #

min :: UID -> UID -> UID #

Show UID Source # 

Methods

showsPrec :: Int -> UID -> ShowS #

show :: UID -> String #

showList :: [UID] -> ShowS #

data ExDate Source #

Exception Date-Times. 3.8.5.1.

data RDate Source #

Recurrence Date-Times. 3.8.5.2.

Instances

Eq RDate Source # 

Methods

(==) :: RDate -> RDate -> Bool #

(/=) :: RDate -> RDate -> Bool #

Ord RDate Source # 

Methods

compare :: RDate -> RDate -> Ordering #

(<) :: RDate -> RDate -> Bool #

(<=) :: RDate -> RDate -> Bool #

(>) :: RDate -> RDate -> Bool #

(>=) :: RDate -> RDate -> Bool #

max :: RDate -> RDate -> RDate #

min :: RDate -> RDate -> RDate #

Show RDate Source # 

Methods

showsPrec :: Int -> RDate -> ShowS #

show :: RDate -> String #

showList :: [RDate] -> ShowS #

data RRule Source #

Recurrence Rule. 3.8.5.3.

Constructors

RRule 

Instances

Eq RRule Source # 

Methods

(==) :: RRule -> RRule -> Bool #

(/=) :: RRule -> RRule -> Bool #

Ord RRule Source # 

Methods

compare :: RRule -> RRule -> Ordering #

(<) :: RRule -> RRule -> Bool #

(<=) :: RRule -> RRule -> Bool #

(>) :: RRule -> RRule -> Bool #

(>=) :: RRule -> RRule -> Bool #

max :: RRule -> RRule -> RRule #

min :: RRule -> RRule -> RRule #

Show RRule Source # 

Methods

showsPrec :: Int -> RRule -> ShowS #

show :: RRule -> String #

showList :: [RRule] -> ShowS #

data Repeat Source #

Repeat count. 3.8.6.2.

Constructors

Repeat 

data Created Source #

Date-Time Created. 3.8.7.1.