orgmode-parse-0.2.2: A collection of Attoparsec combinators for parsing org-mode flavored documents.

Copyright© 2014 Parnell Springmeyer
LicenseAll Rights Reserved
MaintainerParnell Springmeyer <parnell@digitalmentat.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.OrgMode.Types

Contents

Description

Types for the AST of an org-mode document.

Synopsis

Documentation

data ActiveState Source #

Sum type indicating the active state of a timestamp.

Constructors

Active 
Inactive 
Instances
Eq ActiveState Source # 
Instance details

Defined in Data.OrgMode.Types

Read ActiveState Source # 
Instance details

Defined in Data.OrgMode.Types

Show ActiveState Source # 
Instance details

Defined in Data.OrgMode.Types

Generic ActiveState Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep ActiveState :: * -> * #

ToJSON ActiveState Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON ActiveState Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep ActiveState Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep ActiveState = D1 (MetaData "ActiveState" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "Active" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "Inactive" PrefixI False) (U1 :: * -> *))

data BracketedDateTime Source #

A data type for parsed org-mode bracketed datetime stamps, e.g:

[2015-03-27 Fri 10:20 +4h]

newtype Clock Source #

Constructors

Clock 
Instances
Eq Clock Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

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

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

Show Clock Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

showsPrec :: Int -> Clock -> ShowS #

show :: Clock -> String #

showList :: [Clock] -> ShowS #

Generic Clock Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Clock :: * -> * #

Methods

from :: Clock -> Rep Clock x #

to :: Rep Clock x -> Clock #

ToJSON Clock Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Clock Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Clock Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Clock = D1 (MetaData "Clock" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" True) (C1 (MetaCons "Clock" PrefixI True) (S1 (MetaSel (Just "unClock") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Timestamp, Maybe Duration))))

data DateTime Source #

A data type for parsed org-mode datetime stamps.

TODO: why do we have this data type and BracketedDateTime? They look almost exactly the same...

Instances
Eq DateTime Source # 
Instance details

Defined in Data.OrgMode.Types

Show DateTime Source # 
Instance details

Defined in Data.OrgMode.Types

Generic DateTime Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep DateTime :: * -> * #

Methods

from :: DateTime -> Rep DateTime x #

to :: Rep DateTime x -> DateTime #

ToJSON DateTime Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON DateTime Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep DateTime Source # 
Instance details

Defined in Data.OrgMode.Types

data Delay Source #

A data type representing a delay value.

Constructors

Delay 

Fields

Instances
Eq Delay Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

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

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

Show Delay Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

showsPrec :: Int -> Delay -> ShowS #

show :: Delay -> String #

showList :: [Delay] -> ShowS #

Generic Delay Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Delay :: * -> * #

Methods

from :: Delay -> Rep Delay x #

to :: Rep Delay x -> Delay #

ToJSON Delay Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Delay Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Delay Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Delay = D1 (MetaData "Delay" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "Delay" PrefixI True) (S1 (MetaSel (Just "delayType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 DelayType) :*: (S1 (MetaSel (Just "delayValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "delayUnit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TimeUnit))))

data DelayType Source #

A sum type representing the delay type of a delay value.

Constructors

DelayAll 
DelayFirst 
Instances
Eq DelayType Source # 
Instance details

Defined in Data.OrgMode.Types

Show DelayType Source # 
Instance details

Defined in Data.OrgMode.Types

Generic DelayType Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep DelayType :: * -> * #

ToJSON DelayType Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON DelayType Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep DelayType Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep DelayType = D1 (MetaData "DelayType" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "DelayAll" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "DelayFirst" PrefixI False) (U1 :: * -> *))

newtype Depth Source #

Headline nesting depth.

Constructors

Depth Int 
Instances
Eq Depth Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

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

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

Num Depth Source # 
Instance details

Defined in Data.OrgMode.Types

Show Depth Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

showsPrec :: Int -> Depth -> ShowS #

show :: Depth -> String #

showList :: [Depth] -> ShowS #

Generic Depth Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Depth :: * -> * #

Methods

from :: Depth -> Rep Depth x #

to :: Rep Depth x -> Depth #

ToJSON Depth Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Depth Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Depth Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Depth = D1 (MetaData "Depth" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" True) (C1 (MetaCons "Depth" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

data Document Source #

Org-mode document.

Constructors

Document 

Fields

Instances
Eq Document Source # 
Instance details

Defined in Data.OrgMode.Types

Show Document Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Document Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Document :: * -> * #

Methods

from :: Document -> Rep Document x #

to :: Rep Document x -> Document #

ToJSON Document Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Document Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Document Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Document = D1 (MetaData "Document" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "Document" PrefixI True) (S1 (MetaSel (Just "documentText") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "documentHeadlines") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Headline])))

data Drawer Source #

Constructors

Drawer 

Fields

Instances
Eq Drawer Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

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

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

Show Drawer Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Drawer Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Drawer :: * -> * #

Methods

from :: Drawer -> Rep Drawer x #

to :: Rep Drawer x -> Drawer #

ToJSON Drawer Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Drawer Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Drawer Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Drawer = D1 (MetaData "Drawer" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "Drawer" PrefixI True) (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "contents") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data Headline Source #

Headline within an org-mode document.

Constructors

Headline 

Fields

Instances
Eq Headline Source # 
Instance details

Defined in Data.OrgMode.Types

Show Headline Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Headline Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Headline :: * -> * #

Methods

from :: Headline -> Rep Headline x #

to :: Rep Headline x -> Headline #

ToJSON Headline Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Headline Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Headline Source # 
Instance details

Defined in Data.OrgMode.Types

newtype Logbook Source #

Constructors

Logbook 

Fields

Instances
Eq Logbook Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

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

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

Show Logbook Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Logbook Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Logbook :: * -> * #

Methods

from :: Logbook -> Rep Logbook x #

to :: Rep Logbook x -> Logbook #

Semigroup Logbook Source # 
Instance details

Defined in Data.OrgMode.Types

Monoid Logbook Source # 
Instance details

Defined in Data.OrgMode.Types

ToJSON Logbook Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Logbook Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Logbook Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Logbook = D1 (MetaData "Logbook" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" True) (C1 (MetaCons "Logbook" PrefixI True) (S1 (MetaSel (Just "unLogbook") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Clock])))

data PlanningKeyword Source #

A sum type representing the planning keywords.

Constructors

SCHEDULED 
DEADLINE 
CLOSED 
Instances
Enum PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

Eq PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

Ord PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

Show PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

Generic PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep PlanningKeyword :: * -> * #

Hashable PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

ToJSON PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep PlanningKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep PlanningKeyword = D1 (MetaData "PlanningKeyword" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "SCHEDULED" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "DEADLINE" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "CLOSED" PrefixI False) (U1 :: * -> *)))

newtype Plannings Source #

A type representing a map of planning timestamps.

Instances
Eq Plannings Source # 
Instance details

Defined in Data.OrgMode.Types

Show Plannings Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Plannings Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Plannings :: * -> * #

ToJSON Plannings Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Plannings Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Plannings Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Plannings = D1 (MetaData "Plannings" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" True) (C1 (MetaCons "Plns" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap PlanningKeyword Timestamp))))

data Priority Source #

A sum type representing the three default priorities: A, B, and C.

Constructors

A 
B 
C 
Instances
Eq Priority Source # 
Instance details

Defined in Data.OrgMode.Types

Ord Priority Source # 
Instance details

Defined in Data.OrgMode.Types

Read Priority Source # 
Instance details

Defined in Data.OrgMode.Types

Show Priority Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Priority Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Priority :: * -> * #

Methods

from :: Priority -> Rep Priority x #

to :: Rep Priority x -> Priority #

ToJSON Priority Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Priority Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Priority Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Priority = D1 (MetaData "Priority" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "A" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "B" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "C" PrefixI False) (U1 :: * -> *)))

newtype Properties Source #

Constructors

Properties 
Instances
Eq Properties Source # 
Instance details

Defined in Data.OrgMode.Types

Show Properties Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Properties Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Properties :: * -> * #

Semigroup Properties Source # 
Instance details

Defined in Data.OrgMode.Types

Monoid Properties Source # 
Instance details

Defined in Data.OrgMode.Types

ToJSON Properties Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Properties Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Properties Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Properties = D1 (MetaData "Properties" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" True) (C1 (MetaCons "Properties" PrefixI True) (S1 (MetaSel (Just "unProperties") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text Text))))

data Repeater Source #

A data type representing a repeater interval in a org-mode timestamp.

Constructors

Repeater 

Fields

Instances
Eq Repeater Source # 
Instance details

Defined in Data.OrgMode.Types

Show Repeater Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Repeater Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Repeater :: * -> * #

Methods

from :: Repeater -> Rep Repeater x #

to :: Rep Repeater x -> Repeater #

ToJSON Repeater Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Repeater Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Repeater Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Repeater = D1 (MetaData "Repeater" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "Repeater" PrefixI True) (S1 (MetaSel (Just "repeaterType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 RepeaterType) :*: (S1 (MetaSel (Just "repeaterValue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "repeaterUnit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TimeUnit))))

data RepeaterType Source #

A sum type representing the repeater type of a repeater interval in a org-mode timestamp.

Instances
Eq RepeaterType Source # 
Instance details

Defined in Data.OrgMode.Types

Show RepeaterType Source # 
Instance details

Defined in Data.OrgMode.Types

Generic RepeaterType Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep RepeaterType :: * -> * #

ToJSON RepeaterType Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON RepeaterType Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep RepeaterType Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep RepeaterType = D1 (MetaData "RepeaterType" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "RepeatCumulate" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "RepeatCatchUp" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "RepeatRestart" PrefixI False) (U1 :: * -> *)))

data Section Source #

Section of text directly following a headline.

Constructors

Section 

Fields

Instances
Eq Section Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

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

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

Show Section Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Section Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Section :: * -> * #

Methods

from :: Section -> Rep Section x #

to :: Rep Section x -> Section #

ToJSON Section Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Section Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Section Source # 
Instance details

Defined in Data.OrgMode.Types

newtype StateKeyword Source #

A type representing a headline state keyword, e.g: TODO, DONE, WAITING, etc.

Constructors

StateKeyword 

Fields

Instances
Eq StateKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

Show StateKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

Generic StateKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep StateKeyword :: * -> * #

ToJSON StateKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON StateKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep StateKeyword Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep StateKeyword = D1 (MetaData "StateKeyword" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" True) (C1 (MetaCons "StateKeyword" PrefixI True) (S1 (MetaSel (Just "unStateKeyword") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))

data Stats Source #

A data type representing a stats value in a headline, e.g [2/3] in this headline:

* TODO [2/3] work on orgmode-parse

Constructors

StatsPct Int 
StatsOf Int Int 
Instances
Eq Stats Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

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

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

Show Stats Source # 
Instance details

Defined in Data.OrgMode.Types

Methods

showsPrec :: Int -> Stats -> ShowS #

show :: Stats -> String #

showList :: [Stats] -> ShowS #

Generic Stats Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Stats :: * -> * #

Methods

from :: Stats -> Rep Stats x #

to :: Rep Stats x -> Stats #

ToJSON Stats Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Stats Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Stats Source # 
Instance details

Defined in Data.OrgMode.Types

type Tag = Text Source #

data TimePart Source #

A sum type representing an absolute time part of a bracketed org-mode datetime stamp or a time range between two absolute timestamps.

Constructors

AbsoluteTime AbsTime 
TimeStampRange (AbsTime, AbsTime) 
Instances
Eq TimePart Source # 
Instance details

Defined in Data.OrgMode.Types

Ord TimePart Source # 
Instance details

Defined in Data.OrgMode.Types

Show TimePart Source # 
Instance details

Defined in Data.OrgMode.Types

data TimeUnit Source #

A sum type representing the time units of a delay.

Instances
Eq TimeUnit Source # 
Instance details

Defined in Data.OrgMode.Types

Show TimeUnit Source # 
Instance details

Defined in Data.OrgMode.Types

Generic TimeUnit Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep TimeUnit :: * -> * #

Methods

from :: TimeUnit -> Rep TimeUnit x #

to :: Rep TimeUnit x -> TimeUnit #

ToJSON TimeUnit Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON TimeUnit Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep TimeUnit Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep TimeUnit = D1 (MetaData "TimeUnit" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) ((C1 (MetaCons "UnitYear" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "UnitWeek" PrefixI False) (U1 :: * -> *)) :+: (C1 (MetaCons "UnitMonth" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "UnitDay" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "UnitHour" PrefixI False) (U1 :: * -> *))))

data Timestamp Source #

A generic data type for parsed org-mode time stamps, e.g:

<2015-03-27 Fri 10:20>
[2015-03-27 Fri 10:20 +4h]
<2015-03-27 Fri 10:20>--<2015-03-28 Sat 10:20>

Constructors

Timestamp 

Fields

Instances
Eq Timestamp Source # 
Instance details

Defined in Data.OrgMode.Types

Show Timestamp Source # 
Instance details

Defined in Data.OrgMode.Types

Generic Timestamp Source # 
Instance details

Defined in Data.OrgMode.Types

Associated Types

type Rep Timestamp :: * -> * #

ToJSON Timestamp Source # 
Instance details

Defined in Data.OrgMode.Types

FromJSON Timestamp Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Timestamp Source # 
Instance details

Defined in Data.OrgMode.Types

type Rep Timestamp = D1 (MetaData "Timestamp" "Data.OrgMode.Types" "orgmode-parse-0.2.2-1CCMoeA8RgV9Qkkl0ZW1km" False) (C1 (MetaCons "Timestamp" PrefixI True) (S1 (MetaSel (Just "tsTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 DateTime) :*: (S1 (MetaSel (Just "tsActive") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ActiveState) :*: S1 (MetaSel (Just "tsEndTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe DateTime)))))

data YearMonthDay #

Constructors

YearMonthDay 

Fields

Instances
Eq YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

Data YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> YearMonthDay -> c YearMonthDay #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c YearMonthDay #

toConstr :: YearMonthDay -> Constr #

dataTypeOf :: YearMonthDay -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c YearMonthDay) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c YearMonthDay) #

gmapT :: (forall b. Data b => b -> b) -> YearMonthDay -> YearMonthDay #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> YearMonthDay -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> YearMonthDay -> r #

gmapQ :: (forall d. Data d => d -> u) -> YearMonthDay -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> YearMonthDay -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> YearMonthDay -> m YearMonthDay #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> YearMonthDay -> m YearMonthDay #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> YearMonthDay -> m YearMonthDay #

Ord YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

Show YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

Generic YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

Associated Types

type Rep YearMonthDay :: * -> * #

ToJSON YearMonthDay # 
Instance details

Defined in Data.OrgMode.Types

FromJSON YearMonthDay # 
Instance details

Defined in Data.OrgMode.Types

NFData YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

Methods

rnf :: YearMonthDay -> () #

FormatTime YearMonthDay 
Instance details

Defined in Data.Thyme.Format

Methods

showsTime :: TimeLocale -> YearMonthDay -> (Char -> ShowS) -> Char -> ShowS #

ParseTime YearMonthDay 
Instance details

Defined in Data.Thyme.Format

Unbox YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

Vector Vector YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

MVector MVector YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

type Rep YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

type Rep YearMonthDay = D1 (MetaData "YearMonthDay" "Data.Thyme.Calendar.Internal" "thyme-0.3.5.5-5G9B4gZJusnHED8dyBbfuc" False) (C1 (MetaCons "YearMonthDay" PrefixI True) (S1 (MetaSel (Just "ymdYear") SourceUnpack SourceStrict DecidedStrict) (Rec0 Year) :*: (S1 (MetaSel (Just "ymdMonth") SourceUnpack SourceStrict DecidedStrict) (Rec0 Month) :*: S1 (MetaSel (Just "ymdDay") SourceUnpack SourceStrict DecidedStrict) (Rec0 DayOfMonth))))
data Vector YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

data MVector s YearMonthDay 
Instance details

Defined in Data.Thyme.Calendar.Internal

Orphan instances