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

Safe HaskellNone

Text.ICalendar.Types

Description

ICalendar types, based on RFC5545.

Synopsis

Documentation

newtype Language Source

Language.

Constructors

Language (CI Text) 

data OtherParam Source

One other parameter, either x-param or iana-param.

Constructors

OtherParam (CI Text) [Text] 

data OtherParams Source

Other parameters, either x-param or other iana-param.

Constructors

OtherParams (Set OtherParam) 

data VCalendar Source

VCalendar component. 3.4.

Constructors

VCalendar 

Fields

vcProdId :: ProdId
 
vcVersion :: ICalVersion
 
vcScale :: Scale
 
vcMethod :: Maybe Method
 
vcOther :: Set OtherProperty
 
vcTimeZones :: Map Text VTimeZone

Map TZID-value VTimeZone

vcEvents :: Map (Text, Maybe (Either Date DateTime)) VEvent

Map (UID-value, Maybe RecurrenceID-value) VEvent

vcTodos :: Map (Text, Maybe (Either Date DateTime)) VTodo

Map (UID-value, Maybe RecurrenceID-value) VTodo

vcJournals :: Map (Text, Maybe (Either Date DateTime)) VJournal

Map (UID-value, Maybe RecurrenceID-value) VJournal

vcFreeBusys :: Map Text VFreeBusy

Map UID-value VFreeBusy

vcOtherComps :: Set VOther
 

Instances

Eq VCalendar 
Ord VCalendar 
Show VCalendar 
Typeable VCalendar 
Monoid VCalendar

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.

Default VCalendar 

data ProdId Source

Product Identifier. 3.7.3.

Constructors

ProdId 

data Scale Source

Calendar Scale. 3.7.1.

Constructors

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 

data ClassValue Source

Classification value. 3.8.1.3. Unrecognized ClassValueX MUST be treated as Private.

data Completed Source

Date-Time Completed. 3.8.2.1.

data Geo Source

Geographic Position. 3.8.1.6.

Constructors

Geo 

Instances

data Date Source

Date. 3.3.4

Constructors

Date 

Fields

dateValue :: Day
 

data Due Source

Date-Time Due. 3.8.2.3.

Instances

data Sign Source

Sign.

Constructors

Positive 
Negative 

data UTCPeriod Source

Period of time which must be UTC, as in FreeBusy. 3.3.9.

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 

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

utcOffsetValue :: Int

Number of seconds away from UTC

utcOffsetOther :: OtherParams
 

data TZUrl Source

Time Zone URL. 3.8.3.5.

Constructors

TZUrl 

data CUType Source

Calendar User Type. 3.2.3.

Unrecognized CUTypeX MUST be treated as Unknown.

data Range Source

Recurrence Identifier Range. 3.2.13

data RelationshipType Source

Relationship Type. 3.2.15.

Unrecognized RelationshipTypeX values MUST be treated as Parent.

data URL Source

Uniform Resource Locator. 3.8.4.6.

Constructors

URL 

Instances

data UID Source

Unique Identifier. 3.8.4.7.

Constructors

UID 

Instances

data ExDate Source

Exception Date-Times. 3.8.5.1.

data Frequency Source

Frequency in recurrences. 3.3.10.

data Weekday Source

Weekday, in recurrences. 3.3.10.

data RRule Source

Recurrence Rule. 3.8.5.3.

Constructors

RRule 

data Repeat Source

Repeat count. 3.8.6.2.

Constructors

Repeat 

data Created Source

Date-Time Created. 3.8.7.1.

data DTStamp Source

Date-Time Stamp. 3.8.7.2.

data Sequence Source

Sequence number. 3.8.7.4.