haskcell-lib-0.2.1.1

Safe HaskellSafe
LanguageHaskell2010

Data.SpreadSheet.Date

Contents

Description

Utilidades para poder trabajar mejor con fechas. No se pretende sobreescribir o hacer un nexo con librerías como Time, pero sí ofrecer algunas funciones que pueden ser comunmente utilizadas en hojas de cálculo.

Synopsis

Documentation

data Month Source #

Enumerable con los meses.

Instances
Bounded Month Source # 
Instance details

Defined in Data.SpreadSheet.Date

Enum Month Source # 
Instance details

Defined in Data.SpreadSheet.Date

Eq Month Source # 
Instance details

Defined in Data.SpreadSheet.Date

Methods

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

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

Ord Month Source # 
Instance details

Defined in Data.SpreadSheet.Date

Methods

compare :: Month -> Month -> Ordering #

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

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

(>) :: Month -> Month -> Bool #

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

max :: Month -> Month -> Month #

min :: Month -> Month -> Month #

Read Month Source # 
Instance details

Defined in Data.SpreadSheet.Date

Show Month Source # 
Instance details

Defined in Data.SpreadSheet.Date

Methods

showsPrec :: Int -> Month -> ShowS #

show :: Month -> String #

showList :: [Month] -> ShowS #

Ix Month Source # 
Instance details

Defined in Data.SpreadSheet.Date

data WeekDay Source #

Enumerable con los días de la semana.

Instances
Bounded WeekDay Source # 
Instance details

Defined in Data.SpreadSheet.Date

Enum WeekDay Source # 
Instance details

Defined in Data.SpreadSheet.Date

Eq WeekDay Source # 
Instance details

Defined in Data.SpreadSheet.Date

Methods

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

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

Ord WeekDay Source # 
Instance details

Defined in Data.SpreadSheet.Date

Read WeekDay Source # 
Instance details

Defined in Data.SpreadSheet.Date

Show WeekDay Source # 
Instance details

Defined in Data.SpreadSheet.Date

Ix WeekDay Source # 
Instance details

Defined in Data.SpreadSheet.Date

next :: (Eq a, Bounded a, Enum a) => a -> a Source #

Permite iterar sobre datos enumerables de forma circular. Una vez se llega al último elemento, el siguiente será el primero.

>>> next October
November
>>> next December
January

Permite la generacion de una lista infinita:

>>> take 11 $ iterate next Saturday
[Saturday,Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday,Monday,Tuesday]

getMonth :: Day -> Month Source #

Indica el mes al que pertenece un día.

>>> getMonth $ fromGregorian 2019 1 14
January

Orphan instances

Arbitrary Day Source # 
Instance details

Methods

arbitrary :: Gen Day

shrink :: Day -> [Day]