Safe HaskellSafe

Calendar

Description

A Module for Calendar Information

Synopsis

Documentation

type Month = Int Source #

1 - January, 2 - February, ...

type Year = Int Source #

Years are just Ints.

type Dayname = Int Source #

0 - Sunday, 1 - Monday, 2 - Tuesday, ...

monthInfo :: Month -> Year -> (Dayname, Int) Source #

Given a month and a year, return the first weekday of the month together with the total number of days it has (in the given year).