HQu-0.0.0.3: quantitative finance library
Safe HaskellNone
LanguageHaskell2010

Q.Time.DayCounter

Synopsis

Documentation

class DayCounter m where Source #

Day counter type class

Methods

dcName Source #

Arguments

:: m 
-> String

Name of the day counter.

dcCount Source #

Arguments

:: m 
-> Day 
-> Day 
-> Int

Number of business days inbetween

dcYearFraction Source #

Arguments

:: m 
-> Day 
-> Day 
-> Double

Year fraction between 2 dates.

Instances

Instances details
DayCounter Thirty360 Source # 
Instance details

Defined in Q.Time.DayCounter

data Thirty360 Source #

Thirty day counters as in QuantLib

Instances

Instances details
Eq Thirty360 Source # 
Instance details

Defined in Q.Time.DayCounter

Read Thirty360 Source # 
Instance details

Defined in Q.Time.DayCounter

Show Thirty360 Source # 
Instance details

Defined in Q.Time.DayCounter

Generic Thirty360 Source # 
Instance details

Defined in Q.Time.DayCounter

Associated Types

type Rep Thirty360 :: Type -> Type #

DayCounter Thirty360 Source # 
Instance details

Defined in Q.Time.DayCounter

type Rep Thirty360 Source # 
Instance details

Defined in Q.Time.DayCounter

type Rep Thirty360 = D1 ('MetaData "Thirty360" "Q.Time.DayCounter" "HQu-0.0.0.3-JHSOnnZVr6N493rESVt36s" 'False) (C1 ('MetaCons "ThirtyUSA" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ThirtyEuropean" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ThirtyItalian" 'PrefixI 'False) (U1 :: Type -> Type)))